htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

Adding a line break before a tag

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

What steps will reproduce the problem?
1.Create a jsp/html file containing <script> ... </script>
2.Run the compresson 


What is the expected output? What do you see instead?

<script> tag is goint part of the compressed line and rest of the contents of 
the script tag and </script> is as is. I would like to have the <script> tag as 
is too or I need to add a line break before <script>

What version of the product are you using? On what operating system?
1.4.3

Please provide any additional information below.

There are no issues with this on the browser in html rendering, but we have a 
parser for transforming html to pdf and we are seeing issues because of this. 
And we dont want to touch that parser code at this time, pls help on adding a 
line break before <script> or leaving <script> tag as is without moving it to 
the compressed line.  

Thank you and Appreciate your help.

Original issue reported on code.google.com by [email protected] on 1 Nov 2011 at 2:18

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

Try wrapping your script blocks with <!-- {{{ -->...<!-- }}} --> comments, it 
should preserve everything inside untouched.

I don't think I should make this change for everyone.

Original comment by [email protected] on 1 Nov 2011 at 3:51

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter