Skip to content

Website has zero width spaces that lead to undesired line breaks

One example of this is:

image

The period shouldn't be on the next line, at least not by itself.

I checked the HTML:

<p>In Eclipse, right click an open text editor for a <code>.cif</code> or <code>.cifx</code> file and choose <span class="menuseq"><b class="menu">CIF synthesis tools</b>&nbsp;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Convert CIF to Supremica…&ZeroWidthSpace;</b></span>.</p>

There is a &ZeroWidthSpace; in there that causes it. I looked for this text in the website, but didn't find it. It seems it is actually a U+200B ZERO WIDTH SPACE unicode character, that the browser turns into &ZeroWidthSpace;. I looked for more occurrences of this character on the website, and it seems to be after characters, which is a single character that AsciiDoc automatically inserts instead of .... This affects many places in our documentation and our website.