htmlmin removing whitespace from text nodes #12

Closed
badunk opened this Issue Apr 1, 2013 · 2 comments

Projects

None yet

1 participant

@badunk
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:

No<span>items</span>selected

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

@badunk
badunk commented Apr 1, 2013

I found the documentation here: http://perfectionkills.com/experimenting-with-html-minifier/#options

It is supposedly a known side effect

@badunk badunk closed this Apr 1, 2013
@badunk
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