alikothari / htmlcompressor

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

How to Preserve Space before closing tag. #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.We have tags something like this <input type="hidden" 
id="parentSessionHidden" value=Yes />

2.When we compress it is removing the space after 'value=Yes' and the html is 
like below.

<input type="hidden" id="parentSessionHidden" value=Yes/>

3. This is causing some issues for us because it is passing the value as "Yes/" 
instead of "Yes". 

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

Becuase we are not sure in what all places of our app we have this scenario, we 
want to preserve the space before close tag, is there any option for that pls?
What version of the product are you using? On what operating system?
htmlcompressor-1.4.3.jar 

Please provide any additional information below.

Thank you for your help.

Original issue reported on code.google.com by rmul...@gmail.com on 2 Nov 2011 at 3:19

GoogleCodeExporter commented 9 years ago
We use build scripts to compress, just fyi.

Original comment by rmul...@gmail.com on 2 Nov 2011 at 3:20

GoogleCodeExporter commented 9 years ago
What about having: value="Yes"?

Original comment by serg472@gmail.com on 2 Nov 2011 at 5:16

GoogleCodeExporter commented 9 years ago
We can add that but we may have quite a few cases like that, so I am wondering 
if there is any option to leave that space as is.

Original comment by rmul...@gmail.com on 3 Nov 2011 at 12:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry for the long response, this should be fixed now in 1.5.3 release.

Original comment by serg472@gmail.com on 7 Mar 2012 at 1:32