marconilanna / htmlcompressor

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

removeSpacesInsideTags incorrectly removes space after some unquoted attributes #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ 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 mpn@google.com on 28 Dec 2013 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
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 <mina86@mina86.com>

Original comment by mpn@google.com on 28 Dec 2013 at 7:52