htmlmin removing whitespace from text nodes #12

badunk opened this Issue Apr 1, 2013 · 2 comments


None yet

1 participant

badunk commented Apr 1, 2013

I am seeing that whenever I perform html min on text nodes, say:

No <span>items</span> selected

it converts that to:


My expected result in those cases is for it to remove redundant whitespace, not eliminate it completely.

badunk commented Apr 1, 2013

I found the documentation here:

It is supposedly a known side effect

@badunk badunk closed this Apr 1, 2013
badunk commented Apr 1, 2013

Specifically this:

This second option—collapsing to one white space—has not yet been added to minifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment