Closed mikehayesuk closed 10 years ago
Workarounds:
<p>Enter your name: <input type="text" name="person_name"> <button>Save</button></p>
http://en.wikipedia.org/wiki/Space_%28punctuation%29#Spaces_in_Unicode
Or use <span>
& margin-right:1em
.
This one is rather tricky, as the input element per se is not seen as an element having to pertain flow, like pre
and code
. Next week I'll be on vacation and perhaps a solution will come to mind. I'll think about it. I could perhaps provide an option to allow this pattern
One option would be to reduce any kind of whitespace to just one single space. This minifies the HTML but retains spaces where necessary, it also matches the behaviour of the browser. Probably best as an option, as I'm sure some people will want the spacing removed completely. Thanks and have a great vacation!
Fixed with https://github.com/Moveo/minimize/commit/f4d77609d7f12eb7deba7c791654b34e64d07c32, released as 0.8
Hey,
Sorry for the onslaught of issues from me... I have noticed one more though.
Spacing is being removed around elements, for example:
Is compiled to:
Is this expected behaviour? I often use spacing around form elements (rather than always using CSS to space them apart) and imagine that this is quite common. Of course
is an option here but I'm not sure changing the source is the right solution.Hopefully my last one, sorry! If it improves the software though, it must be a good thing. :)
Thanks