{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1261","labels_url":"https://api.github.com/repos/riot/riot/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1261/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1261/events","html_url":"https://github.com/riot/riot/issues/1261","id":110418562,"number":1261,"title":"<pre> tag does not preserve neither \\n nor \\t","user":{"login":"maciejjankowski","id":2905995,"avatar_url":"https://avatars.githubusercontent.com/u/2905995?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejjankowski","html_url":"https://github.com/maciejjankowski","followers_url":"https://api.github.com/users/maciejjankowski/followers","following_url":"https://api.github.com/users/maciejjankowski/following{/other_user}","gists_url":"https://api.github.com/users/maciejjankowski/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejjankowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejjankowski/subscriptions","organizations_url":"https://api.github.com/users/maciejjankowski/orgs","repos_url":"https://api.github.com/users/maciejjankowski/repos","events_url":"https://api.github.com/users/maciejjankowski/events{/privacy}","received_events_url":"https://api.github.com/users/maciejjankowski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riot/riot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"aMarCruz","id":6636980,"avatar_url":"https://avatars.githubusercontent.com/u/6636980?v=3","gravatar_id":"","url":"https://api.github.com/users/aMarCruz","html_url":"https://github.com/aMarCruz","followers_url":"https://api.github.com/users/aMarCruz/followers","following_url":"https://api.github.com/users/aMarCruz/following{/other_user}","gists_url":"https://api.github.com/users/aMarCruz/gists{/gist_id}","starred_url":"https://api.github.com/users/aMarCruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aMarCruz/subscriptions","organizations_url":"https://api.github.com/users/aMarCruz/orgs","repos_url":"https://api.github.com/users/aMarCruz/repos","events_url":"https://api.github.com/users/aMarCruz/events{/privacy}","received_events_url":"https://api.github.com/users/aMarCruz/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-08T10:28:40Z","updated_at":"2015-11-15T16:34:49Z","closed_at":null,"body":"````\r\n  <script src=\"https://cdn.jsdelivr.net/g/riot@2.2(riot.min.js+compiler.min.js)\"></script>\r\n  <script type=\"riot/tag\">\r\n  <my-tag>\r\n<pre>xyz\r\n  cc\r\n    ss</pre>\r\n\r\n  </my-tag>\r\n  </script>\r\n  <my-tag></my-tag>\r\n  <script>\r\n    riot.settings.brackets = '{{ }}';    \r\n    riot.mount(\"my-tag\");\r\n  </script>\r\n````\r\n\r\nhttp://jsbin.com/yeyoro/edit?html,output"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/156827733","html_url":"https://github.com/riot/riot/issues/1261#issuecomment-156827733","issue_url":"https://api.github.com/repos/riot/riot/issues/1261","id":156827733,"user":{"login":"rsbondi","id":3729091,"avatar_url":"https://avatars.githubusercontent.com/u/3729091?v=3","gravatar_id":"","url":"https://api.github.com/users/rsbondi","html_url":"https://github.com/rsbondi","followers_url":"https://api.github.com/users/rsbondi/followers","following_url":"https://api.github.com/users/rsbondi/following{/other_user}","gists_url":"https://api.github.com/users/rsbondi/gists{/gist_id}","starred_url":"https://api.github.com/users/rsbondi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsbondi/subscriptions","organizations_url":"https://api.github.com/users/rsbondi/orgs","repos_url":"https://api.github.com/users/rsbondi/repos","events_url":"https://api.github.com/users/rsbondi/events{/privacy}","received_events_url":"https://api.github.com/users/rsbondi/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T16:34:49Z","updated_at":"2015-11-15T16:34:49Z","body":"Summary:\r\n`riot.compile` too complicated to implement adding options in the function client side\r\noption 1: adding options as attribute to the script tag, see code above, values for `compile` would need to be valid JSON.\r\noption 2: add compiler settings to `riot.settings`, easy for the user but will be global to all blocks so less granular.\r\n\r\nI think the global `riot-settings` is fine, the only downside I see to having all tags with the `whitespace` option would be the size of the compiled code, which I don't suspect would be a concern, if it is an issue, you should probably be pre-compiling the tags anyway."}}