Making a table cell break a long line of text

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
scooter262
Propeller Head
Posts: 37
Joined: Wed Mar 11, 2009 11:14 am

Making a table cell break a long line of text

Post by scooter262 »

I have a table that has one column containing long code snippets without spaces. When I print the table, the first two columns are squished to only 2 or 3 characters, making an awful look, and lots of pages.

Is there a way to set a column or cell so that it will break a line after a certain number of characters, or a certain number of pixels/inches?

Even when I set the column widths, it gets overridden, and the first two rows still get squished.
BedfordWriter
Sr. Propeller Head
Posts: 231
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Re: Making a table cell break a long line of text

Post by BedfordWriter »

You can force word breaks with

Code: Select all

word-break: break-all;
in the style for an element. Note that there may be browser support issues with that. There's also

Code: Select all

overflow-wrap: break-word;
If I may, I also suggest looking into using div tags to display columns rather than using tables.
Post Reply