[reportlab-users] Long word in paragraph in table cell

Tim Roberts timr at probo.com
Thu Aug 30 17:47:17 EDT 2007


Simon Metson wrote:

>

> I'm writing a document using Reportlab, and so far so good. However, I

> have a table, whose contents are paragraphs (though there's no need

> for them to be). The contents of some of the table cells will be long

> strings without spaces, strings longer than the width of the cell. I'd

> like a way to automatically split the string, at the width of the cell

> minus any padding. Is there a way to do this?


Not automatically; ReportLab doesn't yet do hyphenation.

If I were doing it, I'd probably write my own paragraph class derived
from Paragraph, and check for these long words by hand. It wouldn't be
easy, but it could be done.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list