This project has moved and is read-only. For the latest updates, please go here.

Safer than safe?

Apr 25, 2016 at 2:53 PM
Is there any chance of getting a whitespace minification mode that's safer than "Safe"?

Specifically: "removes all leading and trailing whitespace characters from outer contents of non-independent tags" - I'd like a version that converted all multiple whitespace to single whitespace characters.
Apr 25, 2016 at 3:50 PM
Safe whitespace minification mode means, that minification does not change the appearance of web page.

Your web page has changed appearance?
Apr 25, 2016 at 4:06 PM
Yes, it has. It is affecting the spacing between items of unordered lists.

See the difference between the header in the top-right of this page where it says "Register | Login":

versus this version of the header on a page which is not minified:

I have switched off minification on the second page because it was also removing spacing between items in the list of keywords on the page (i.e. "pop art, portrait, celebrity, black, orange, red" was showing up as "pop art,portrait,celebrity,black,orange,red") - because it is also implemented as an unordered list.

I am using the MVC4 version of MebMarkupMin version 2.0.0-rc3, even though it is a release candidate. Aside from this issue, it seems very good!
Apr 25, 2016 at 4:32 PM
In next release I will try to solve this problem, but it will not be soon.

Now I have no free time.
Apr 25, 2016 at 5:08 PM
That's good to know. Thanks!
Apr 25, 2016 at 5:51 PM
In next 2 weeks will not be exact free time.
May 10, 2016 at 12:47 PM
Hello, Awinterbottom!

In WebMarkupMin 2.0.0 RC 7 improved a safe whitespace minification mode. But in your case, safe mode is not enough, you also have set to RemoveOptionalEndTags option value equals to false. In next version I'll do more fine-tuning removal of the optional end tags