[reportlab-users] carriage return in paragraph?
François Heredero - Top Music SA
reportlab-users@reportlab.com
Fri, 11 Apr 2003 17:53:54 +0200
> No, because conceptually you'd end up with two paragraphs.
> So, why not make two paragraphs from the start?
I want to print a text with <font> tags and differents paragraphs. I make a
function :
def printParagraphes(text):
l = myPageWidthLessMyMargins
for par in text.split('\n'):
P=Paragraph(par,style)
l, h = P.wrap(l,0)
P.drawOn(c,0, -h)
c.translate(0,-h)
But if my first lines of text are :
<font size=22>Test</font>
<para leading=6><font size=6>long text long text long text...
The text 'long text' is printed in the middle of the text 'test'. If I don't
change the <font> size, all is OK...
François