typogruby icon indicating copy to clipboard operation
typogruby copied to clipboard

Adds non-breaking spaces at end of lines, rather than end of element

Open avdgaag opened this issue 13 years ago • 1 comments

When writing HTML like this:

<p>lorem ipsum dolor
sit amet foo
bar baz</p>

...the widont-filter adds non-breaking spaces to the end of every line:

<p>lorem ipsum&nbsp;dolor
sit amet&nbsp;foo
bar&nbsp;baz</p>

It should ignore newlines in a single element and only add the last &nbsp;.

avdgaag avatar Feb 01 '12 20:02 avdgaag

+1

nud avatar Aug 24 '12 06:08 nud