[reportlab-users] How to put a newline break in a XPreformatted?
Robin Becker
robin at reportlab.com
Wed Feb 27 10:54:08 EST 2008
Shigesan Takuya wrote:
> Hi all,
>
> I have a couple of very long strings to be used in/with XPreformatted.
> My question is how can I put newline break when I print these strings in my pdf generation (so that they don't overflow to outside page margin)?
> As far as I am aware, XPreformatted doesn't provide a wordwrapping facility.
>
>
> Thanks & Regards,
> Shige
>
....
if you just put in a line break that should work
ie XPreformatted('a\nb\nc',...)
should be three lines.
--
Robin Becker
More information about the reportlab-users
mailing list