[reportlab-users] Line Break in a platyfus table text

Elan Noy elan.noy at quoininc.com
Thu May 5 09:03:29 EDT 2011


On 05/04/2011 12:09 PM, Robin Becker wrote:

> On 04/05/2011 17:02, Elan Noy wrote:

>> Hi

>>

>>

>> I am working on a pdf that will include addresses. The address is in

>> a table cell.

>> How can I add a line break after each address attribute such that the

>> address

>> will look something like:

>>

>> Name

>> 1 Street address

>> New York

>> New York

>>

>> I tried to use <br/> but it did not work

>>

>> txt = "Name"+"<br/>"

>> or

>> txt = "Name <br/>"

>>

>> Thanks in advance

>>

>> Elan

> ........

> If you are using simple text in the cell then use the standard escape

> character eg

>

> 'line1\nline2\nline3' etc etc. If you are putting a paragraph in the

> cell then <br/> should work in the paragraph text.

>

>

One more question, if I may.
Is there a way to have TABs in the text. I need to organize text in a
nice format, and it will be a shame to use tables for something as
simple as tabs,

Regards

Elan


More information about the reportlab-users mailing list