Skip to content

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

@avdgaag

Description

@avdgaag

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;.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions