{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/227","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/227/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/227/events","html_url":"https://github.com/htacg/tidy-html5/issues/227","id":94606262,"number":227,"title":"Newlines insert in script elements; vertical-space option ignored","user":{"login":"nokome","id":1152336,"avatar_url":"https://avatars.githubusercontent.com/u/1152336?v=3","gravatar_id":"","url":"https://api.github.com/users/nokome","html_url":"https://github.com/nokome","followers_url":"https://api.github.com/users/nokome/followers","following_url":"https://api.github.com/users/nokome/following{/other_user}","gists_url":"https://api.github.com/users/nokome/gists{/gist_id}","starred_url":"https://api.github.com/users/nokome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nokome/subscriptions","organizations_url":"https://api.github.com/users/nokome/orgs","repos_url":"https://api.github.com/users/nokome/repos","events_url":"https://api.github.com/users/nokome/events{/privacy}","received_events_url":"https://api.github.com/users/nokome/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-12T22:39:05Z","updated_at":"2015-07-12T23:51:44Z","closed_at":null,"body":"tidy 5.0.0RC1 seems to always insert a newline at the start and end of script (and pre) elements. From a code aesthetics  point of view, this is undesirable for situations where the script is an inline element (in my case a MathJax element). Potentially related is the fact that the `vertical-space` option seems to have no effect. I am compiling against tidylib but the below illustrates the issue.\r\n\r\n```sh\r\ntidy --vertical-space no --indent no --wrap 0 --tidy-mark no html-test-doc.html\r\n```\r\n\r\nInput:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <title></title>\r\n  </head>\r\n  <body>\r\n    <p>\r\n      Some old equation <script type=\"math/asciimath\">E=mc^2</script>.\r\n    </p>\r\n  </body>\r\n</html>\r\n```\r\n\r\nExpected output:\r\n```html\r\n<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title></title></head><body><p>Some old equation <script type=\"math/asciimath\">E=mc^2</script>.</p></body></html>\r\n```\r\n\r\nActual output:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title></title>\r\n</head>\r\n<body>\r\n<p>Some old equation \r\n<script type=\"math/asciimath\">\r\nE=mc^2\r\n</script>.</p>\r\n</body>\r\n</html>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/120774427","html_url":"https://github.com/htacg/tidy-html5/issues/227#issuecomment-120774427","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/227","id":120774427,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T23:51:44Z","updated_at":"2015-07-12T23:51:44Z","body":"@nokome thank you for testing 5.0.0RC1... that is important...\r\n\r\nyes, newlines inserted in `<pre>` tags #158 (feature and pretty print) is an old, **OLD** problem, still to be resolved... thankfully it is **NOT** a problem in some browsers, but others do make a new line in the display which should not be there! A big `horror` of `tidy`...\r\n\r\nAnd Add option to prevent outputting unnecessary vertical whitespace #163 (feature and pretty print) is a clear request that `--vertical-space f` mean almost **NO** vertical space ;=)) Sort of like a compact html stream - just one line - maybe an interesting feature addition someone could be interested in coding...\r\n\r\nBoth `requests` are marked `indefinite future`, which means we are still looking for the C coder to take interest, give their time, and work on these two great **features**...\r\n\r\nAre you the one? ;=))\r\n\r\nAnyway, again, tar muchly for testing 5.0.0RC1... and reporting...\r\n"}}