django-htmlmin icon indicating copy to clipboard operation
django-htmlmin copied to clipboard

Explicit space in tag gets removed

Open christiansyoung opened this issue 9 years ago • 5 comments

I was doing this:

<h2>&nbsp;</h2> 

and htmlmin removed this space.

christiansyoung avatar Mar 03 '15 00:03 christiansyoung

We also have this problem and really want it fixed. The problem is that django-htmlmin uses s in their whitespace-removal regex which also removes non-breaking spaces. I haven't come up with a clean solution to this yet…

raphaelm avatar May 16 '15 13:05 raphaelm

Found a solution, I will now prepare a pull request.

raphaelm avatar May 16 '15 14:05 raphaelm

Hi, can you please release this on PyPi?

maikelvl avatar Sep 17 '15 21:09 maikelvl

Yes, please do so! @andrewsmedina

raphaelm avatar Sep 26 '15 15:09 raphaelm

@raphaelm and @crobays I will do it ;)

andrewsmedina avatar Sep 26 '15 17:09 andrewsmedina