-
Notifications
You must be signed in to change notification settings - Fork 429
empty <script> tag wraps but doesn't indent properly #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd rather prefer it to not wrap at all in case there's no content in the node (or rather if there is a |
I'm not keen on changing this. This has always been the tidy behavior and it is not something new that got introduced in this fork. I think it's intended behavior with some rationale behind it, though I don't know what. Somebody should research it. |
Well it seems that it's recognised as a bug, but treated as so low priority that no one touched it since October 2008... Original email thread on the mailing list: http://lists.w3.org/Archives/Public/html-tidy/2008OctDec/0005.html Bug in tracker: http://sourceforge.net/tracker/?func=detail&atid=390963&aid=2207646&group_id=27659 I couldn't find any reasoning why would this be a desired effect, so maybe something which could be a nice fix (albeit admittedly cosmetic) both for this project and upstream? |
Not finding any stated reasoning for it doesn't mean there is none. If it were a clear and simple thing to make a change for I expect it would've been changed long ago. Anyway, it's up to you if you want to put time into writing a patch. If you do it will need to be tested to make sure it doesn't regress anything, introduce new bugs. |
Closing this out as there's not be an action on it. I don't plan on making any change for this myself. If somebody else does, feel free to re-open this and/or make a pull request. |
Given this input file:
I'll run tidy like this:
And get:
Note that the closing script tag is wrapped but not indented. If I put a comment inside the tags:
Then I'll get this:
I'm thinking that the closing script tag should either not wrap at all (in the case where there's no content) or wrap and be indented to match the opening tag.
Thanks.
The text was updated successfully, but these errors were encountered: