Skip to main content
Known Participant
March 18, 2010
Question

Orphaned characters in word wrap

  • March 18, 2010
  • 2 replies
  • 1036 views

I'm noticing some orphaned characters when I center align within narrow columns ...

Mozilla Firefox

This topic has been closed for replies.

2 replies

March 19, 2010

Poobeard,

1) does it happen if you don't use A links ?

2) does it happen if the text is left justified rather than centered ?

3) I assume you are using breaking space and Tempor should be on a line by itself

PoobeardAuthor
Known Participant
March 22, 2010

I think you will find that this is related to another issue I'm having with multiple A links strung together. If you use the XML convertor to create yout TextFlow it does weird things with the conversion. The A links become one big link so I created a SPAN in-between each A link. This created the weird orphans.

Interestingly, now I am constructing my markup as a String and converting it without any issues.

You may want to take a good look at the XML convertor.

March 18, 2010

The only way I can get that to happen is if the words are separated by a non-breaking space. If a word is too long to fit in the line, we will start tearing off characters to make things fit, but a word break should break the line long before that happens.

PoobeardAuthor
Known Participant
March 18, 2010

The two words are an A link. A bunch of A links within a paragraph.

Adobe Employee
March 19, 2010

If a single word is too long to fit within the column, and there are no discretionary hyphens in the word, it will break when no more characters fit. If the grey background in the image you posted is the container size, then I think that's probably what you're seeing. You need to either make the columns bigger, or hyphenate the text.

But, this raises the question, would you rather the text poked outside the container in the this case? Even if it was clipped off?

Thanks,

- robin