[reportlab-users] carriage return in paragraph?
François Heredero - Top Music SA
reportlab-users@reportlab.com
Fri, 11 Apr 2003 16:56:38 +0200
Hello,
It's possible to make a carriage return inside a paragraph, like in html ?
I would like something like this :
from reportlab.pdfgen import canvas
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.platypus import Paragraph
style = getSampleStyleSheet()['BodyText']
canv = canvas.Canvas('test.pdf')
text = "My first line<br>My second line"
P=Paragraph(text,style)
l, h = P.wrap(200,200)
P.drawOn(canv, 10, 200)
canv.save()
François