Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White space added before opentag #551

Closed
quentinsup opened this issue Mar 14, 2016 · 1 comment · Fixed by #553
Closed

White space added before opentag #551

quentinsup opened this issue Mar 14, 2016 · 1 comment · Fixed by #553

Comments

@quentinsup
Copy link

I've upgraded the version of html-minifier from 1.0.0 to 1.2.0, and there is a new issue between this two version when using collapseWhitespace, and using jsp tag into attributes :
<div class="titi.<%=tsItem_[0]%>"> is now "minified" to <div class="titi. <%=tsItem_[0]%> ">(since 1.2.0), with whitespace added before <% and after %>, which modify the interpretation of the class attribute in the IHM !

I tried the options collapseInlineTagWhitespace and removeTagWhitespace, but always the same...

Please help !

@alexlamsl
Copy link
Collaborator

Confirmed - when collapseWhitespace is applied on attributes containing ignoreCustomFragments this would happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants