htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

removeSpacesInsideTags incorrectly removes space after some unquoted attributes

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

$ echo '<a href=#a />' >test.html
$ java -jar htmlcompressor-1.5.3.jar test.html 

Expected output: <a href=#a />
Actual output: <a href=#a/>

Fix attached.

Original issue reported on code.google.com by [email protected] on 28 Dec 2013 at 7:51

Attachments:

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

PS. Sorry, I have no idea how to work with SVN or prepare a proper patch (or 
something). Hope that this diff will be enough to apply it to the sources.

-- 
Michal Nazarewicz <[email protected]>

Original comment by [email protected] on 28 Dec 2013 at 7:52

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter