A nbsp entity (code 160 = hex A0) should be handled like a space, except it does not allow a line break.
Hmm, does it make sense at all if the paragraph uses auto-hyphenation? There may be cases, where it actually seems sensible. For example, the space in the middle of "Dr. Who" probably isn't a good place for a line break.
There seem to be 2 possible places where to handles this:
a) in the Paragraph
b) in the Hyphenator
I tend to b), since then the Paragraph only has to handle nbsp like a letter, and only the BaseHyphenator has to handle it (probably the BaseHyphenator should handle space and nbsp in the input anyway).
Log in to post a comment.