[reportlab-users] Line Break in a platyfus table text
Robin Becker
robin at reportlab.com
Wed May 4 12:09:03 EDT 2011
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.
--
Robin Becker
More information about the reportlab-users
mailing list