{"action":"closed","issue":{"url":"https://api.github.com/repos/coderaiser/cm-show-invisibles/issues/1","repository_url":"https://api.github.com/repos/coderaiser/cm-show-invisibles","labels_url":"https://api.github.com/repos/coderaiser/cm-show-invisibles/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/coderaiser/cm-show-invisibles/issues/1/comments","events_url":"https://api.github.com/repos/coderaiser/cm-show-invisibles/issues/1/events","html_url":"https://github.com/coderaiser/cm-show-invisibles/issues/1","id":134801783,"number":1,"title":"Dynamic deactivation leaves line breaks","user":{"login":"lemairea","id":5527131,"avatar_url":"https://avatars.githubusercontent.com/u/5527131?v=3","gravatar_id":"","url":"https://api.github.com/users/lemairea","html_url":"https://github.com/lemairea","followers_url":"https://api.github.com/users/lemairea/followers","following_url":"https://api.github.com/users/lemairea/following{/other_user}","gists_url":"https://api.github.com/users/lemairea/gists{/gist_id}","starred_url":"https://api.github.com/users/lemairea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemairea/subscriptions","organizations_url":"https://api.github.com/users/lemairea/orgs","repos_url":"https://api.github.com/users/lemairea/repos","events_url":"https://api.github.com/users/lemairea/events{/privacy}","received_events_url":"https://api.github.com/users/lemairea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-19T08:10:21Z","updated_at":"2016-02-19T14:40:49Z","closed_at":"2016-02-19T14:40:49Z","body":"Hi,\r\n\r\nI am trying to use your codemirror plugin with a switch button to activate/deactivate display of invisible characters. I run into a problem which looks like a bug to me when dynamically deactivating the pluggin (set showInvisibles to false from a button for example) : spaces turn invisible again but line breaks keep showing.\r\n\r\nHere is what I do : \r\n- I have a switch button that triggers the showInvisibles value of my codemirror instance.\r\n- At the beginning, it is set to false and invisible characters are indeed not visible. \r\n![show invisible inactive](https://cloud.githubusercontent.com/assets/5527131/13169848/5dc7b95c-d6e8-11e5-8bf1-47ca66a1861d.PNG)\r\n- I then trigger the plugin and set showInvisibles to true. Invisible characters show as expected.\r\n![show invisible activated](https://cloud.githubusercontent.com/assets/5527131/13169849/5dc7e83c-d6e8-11e5-84a2-9e868ebfcb56.PNG)\r\n- I deactivate the plugin setting showInvisibles to false again. White spaces do disapear but line breaks remain.\r\n![show invisible deactivated](https://cloud.githubusercontent.com/assets/5527131/13169850/5dc8f858-d6e8-11e5-9a1a-285cc9655604.PNG)\r\n\r\nIs this indeed a bug or did I do something wrong there ?\r\n\r\nBest regards,\r\nAntoine"}}