Hi,
I have a custom character map for the needs of my company unfortunately Non-breaking space (and hyphen) character doesn't work as intended.
Code: Select all
authorAccess.getDocumentController().insertXMLFragment(" ", caretOffset);
With this code I have a Non-breaking space that works once published in pdf but it has no "non-breaking" influence in author mode.
Code: Select all
authorAccess.getDocumentController().insertXMLFragment("\u00A0", caretOffset);
With Unicode that works in pdf and in author mode but It's indistinguishable from any other space (indistinguishable in text mode as well). Sure, we can use the option in Preferences/Editor/"Show TAB/NBSP/EOL/EOF marks" but honestly you need to have good eyes to tell the difference between the two and it's a little overkill for just a rarely used (but important) character.
I would prefer to use HTML entities because you can select them in css with
and add a colored background. Isn't there a way to make the "non-breaking" work in author mode?