AhmedFarrag / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
0 stars 0 forks source link

Adding a line break before a tag #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 rmul...@gmail.com on 1 Nov 2011 at 2:18

GoogleCodeExporter commented 8 years ago
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 serg472@gmail.com on 1 Nov 2011 at 3:51