-
Notifications
You must be signed in to change notification settings - Fork 429
Newlines insert in script elements; vertical-space option ignored #227
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
@nokome thank you for testing 5.0.0RC1... that is important... yes, newlines inserted in And Add option to prevent outputting unnecessary vertical whitespace #163 (feature and pretty print) is a clear request that Both Are you the one? ;=)) Anyway, again, tar muchly for testing 5.0.0RC1... and reporting... |
@geoffmcl I'll try to have another look at the code to see if I've got any chances of doing something constructive. If not, I would consider offering a bounty for one or both of these issues on Bountysource - would that be acceptable to HTACG? |
@nokome had a look at Bountysource - looks quite interesting... a good way to motivate a programmer ;=)) From my quick reading around their site I can not see any problem with accepting such code if it is released under the same, or a compatible license, as Tidy, as written in the header tidy.h... But I am no expert in these matters... |
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.Input:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: