voku / HtmlMin

:clamp: HtmlMin: HTML Compressor and Minifier via PHP
MIT License
161 stars 22 forks source link

Preserving of spaces after closing of an anchor tag #3

Closed Caffe1neAdd1ct closed 7 years ago

Caffe1neAdd1ct commented 7 years ago

What is this feature about (expected vs actual behaviour)?

Example html before minification:

<span> Click <a href="/">here</a> to see my other page. </span>

Expected:

<span>Click <a href="/">here</a> to see my other page.</span>

Actual:

<span>Click <a href="/">here</a>to see my other page.</span>

How can I reproduce it?

Load the library through composer and put the above html snippets into the minification call.

Does it take minutes, hours or days to fix?

Not a clue, haven't started debugging through the library code yet, just reporting to see if it might be a quick fix or not.

Any additional information?

Any help would be very much appreciated, if i get time i'll try and have a look as well. I'll link a pull request if i manage to solve this one.

Caffe1neAdd1ct commented 7 years ago

Problem between seat and keyboard ...

$htmlMin->doRemoveWhitespaceAroundTags(false);

Solved, thanks for the great library :)