Wrapping continuous text, (no spaces) in a table cell

11 views
Skip to first unread message

Joe Lones

unread,
Apr 23, 2014, 4:56:36 PM4/23/14
to reportl...@googlegroups.com

This is a question concerning text wrapping in table cells.

I don't know how to wrap text in a table cell that is continuous, ie no spaces. Paragraph works for text that has spaces and seems to wrap fine in a table cell. I need to put filenames in a table, and they could be quite long.

Thanks so much.

Joe Lones

unread,
Apr 23, 2014, 5:21:56 PM4/23/14
to reportl...@googlegroups.com
I'm assuming i need to use:

from reportlab.lib.utils import simpleSplit
lines = simpleSplit(text, fontName, fontSize, maxWidth)


and insert <br> manually? If so, how do I determine the fontName, fontSize? I am using platypus and am not setting the font/size what is the default?
Reply all
Reply to author
Forward
0 new messages