{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/56","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/56/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/56/events","html_url":"https://github.com/htacg/tidy-html5/issues/56","id":5568578,"number":56,"title":"Incorrect indentation for script tag","user":{"login":"sjmulder","id":50692,"avatar_url":"https://avatars.githubusercontent.com/u/50692?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmulder","html_url":"https://github.com/sjmulder","followers_url":"https://api.github.com/users/sjmulder/followers","following_url":"https://api.github.com/users/sjmulder/following{/other_user}","gists_url":"https://api.github.com/users/sjmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmulder/subscriptions","organizations_url":"https://api.github.com/users/sjmulder/orgs","repos_url":"https://api.github.com/users/sjmulder/repos","events_url":"https://api.github.com/users/sjmulder/events{/privacy}","received_events_url":"https://api.github.com/users/sjmulder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Feature","name":"Feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2012-07-12T10:18:36Z","updated_at":"2016-01-07T14:34:50Z","closed_at":"2015-02-01T09:50:11Z","body":"Input:\n\n    <!DOCTYPE html>\n    <html>\n        <head>\n            <meta charset=\"utf-8\">\n            <title></title>\n        </head>\n        <body>\n            <p>Paragraph 1</p>\n            <p>Paragraph 2</p>\n            <script>\n                function() {\n                    return 'Hello, World!';\n                }\n            </script>\n            <script src=\"foo.js\"></script>\n        </body>\n    </html>\n\nCommand (no config file):\n\n    tidy --indent 1 --indent-spaces 4 input.html\n\nOutput:\n\n    <!DOCTYPE html>\n    <html>\n        <head>\n            <meta name=\"generator\" content=\n            \"HTML Tidy for HTML5 (experimental) for Mac OS X https://github.com/w3c/tidy-html5/tree/68a9e74\">\n            <meta charset=\"utf-8\">\n            <title></title>\n        </head>\n        <body>\n            <p>\n                Paragraph 1\n            </p>\n            <p>\n                Paragraph 2\n            </p><script>\n        function() {\n                    return 'Hello, World!';\n                }\n            </script> <script src=\"foo.js\">\n    </script>\n        </body>\n    </html>\n\nIssues:\n* There is no newline between the closing tag for paragraph 2 and the opening script tag\n* The script tag is closed on the wrong line"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/169680622","html_url":"https://github.com/htacg/tidy-html5/issues/56#issuecomment-169680622","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/56","id":169680622,"user":{"login":"burtonsys","id":10330726,"avatar_url":"https://avatars.githubusercontent.com/u/10330726?v=3","gravatar_id":"","url":"https://api.github.com/users/burtonsys","html_url":"https://github.com/burtonsys","followers_url":"https://api.github.com/users/burtonsys/followers","following_url":"https://api.github.com/users/burtonsys/following{/other_user}","gists_url":"https://api.github.com/users/burtonsys/gists{/gist_id}","starred_url":"https://api.github.com/users/burtonsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burtonsys/subscriptions","organizations_url":"https://api.github.com/users/burtonsys/orgs","repos_url":"https://api.github.com/users/burtonsys/repos","events_url":"https://api.github.com/users/burtonsys/events{/privacy}","received_events_url":"https://api.github.com/users/burtonsys/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T14:34:50Z","updated_at":"2016-01-07T14:34:50Z","body":"Thank you!\r\n\r\nI tried replacing the Tidy2.dll with a renamed Tidy.dll from the 32-bit Windows binary, `tidy-5.1.25-win32.zip`. But when I started Notepad++ it reported:\r\n\r\n<pre>\r\n---------------------------\r\nC:\\Program Files (x86)\\Notepad++\\plugins\\Tidy2.dll\r\n---------------------------\r\nThis ANSI plugin is not compatible with your Unicode Notepad++.\r\n\r\nThis plugin is not compatible with current version of Notepad++.\r\n\r\nDo you want to remove this plugin from plugins directory to prevent this message from the next launch time?\r\n---------------------------\r\nYes   No   \r\n---------------------------`\r\n</pre>\r\n\r\nOh, well. The command-line version works, and it is much improved over the version which is integrated into the Notepad++ Tidy2 PlugIn.\r\n\r\nThe command-line version is still not perfect, IMO, because it always puts the `</script>` tag on a line by itself, even when it immediately follows a `<script...>` tag that pulls in javascript from a separate file. But it ii certainly much better than the version which is integrated into the NPP Tidy2 PlugIn.\r\n\r\n"}}