Open da2x opened 5 years ago
@da2x thank you for the issue... and samples to easily reproduce, with v.5.6.0, even with tidy
next... v.5.7.22... so is still there...
Yes, it is related to #760, but only where we maybe should have seen this extra newline in the output... but seem to have missed it...
Putting a script block <script>();</script>
in the head, with a config --tidy-mark 0
, adds an additional newline in the output... easily repeatable...
I am sure this can be corrected in the pretty print
module... and will investigate... as time permits...
Meantime, look forward to feedback, patches, PR, etc... thanks...
Steps to reproduce:
Test results:
The problem doesn’t occur when the script is in body instead of in head:
Test results:
Also, doesn’t happen with a meta element in head instead of script.
Version: HTML Tidy for Linux version 5.6.0
Possibly related issues: #760