How do I break long blocks of text across lines?
I have a long block of continuous text that stretches past the end of a fixed width table cell. I would like the text broken up across multiple lines, ie:
But I can't figure out how to do it. Is there a way, or do I need write code that will break up these text chunks by automatically inserting spaces in the middle of them?
Currently this requires manually inserting spaces or zero-width space characters into the text, or writing a program or script to do that for you.
D'oh. I can probably swing that, the only trouble is different characters are different widths, so its tough to estimate where to insert the breaks.
You could always insert a zero-width space (U+200B) after every character, which would take up no space in the output and allow Prince to break the line at any point, rather than trying to calculate exactly where to break the line yourself. Think of it as inserting line breaking opportunities, rather than actual line breaks.
Prince 10 is now available, and supports word-wrap: break-word!
And it only took 8 years