Some of our content comes from a time before we had a stringent editor with a strict data normalisation model. So in some cases we have to deal with legacy content normalisation. In addition, there are some tools that will import content into the application that have yet to have the same strict data normalisation.
This experiment focusses on spacing with two distinct problems.
-
Trailing non-breaking space characters in block elements. Whilst it sounds harmless it has caused printed documents (created by our application outside of CK) to unnecesarily overflow a line with a clear space causing a blank line.
-
Incorrect usage of non-breaking spaces (NBSP,
\u00A0
) in content. An NBSP that is not used inconjunction with a space character (\u0020
) should be changed from a\u00A0
to a normal\u0020
character.
Note: Examples given in entity encoded HTML.
<p>This is a trailing space. </p>
<p>This is an annoying use of NBSP. But this was an ok usage.</p>