[reportlab-users] split Paragraph don't work as expected
Jean-Yves F. Barbier
12ukwn at gmail.com
Fri Feb 3 15:04:43 EST 2012
Hi list,
I'm trying to split a long text Paragraph into multiple
Paragraphs however the result's empty; where am I wrong?
code:
tmp = Paragraph(co, docItemListC1comment)
com = tmp.split(ITEMS_COL1_W, 3.00*mm)
print("ITEMS_COL1_W = %f" % ITEMS_COL1_W)
print("tmp = %s" % tmp)
print("c0 = %s" % c0)
trace:
ITEMS_COL1_W = 269.291339
tmp = Paragraph(
'style': <ParagraphStyle 'docItemListC1comment'>
'bulletText': None
'text': 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
'encoding': 'utf8'
'height': 37.5390625
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=0, fontName='LiberationSansNarrow-Italic', fontSize=8, greek=0, italic=1, link=None, rise=0, strike=0, sub=0, super=0, text='Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', textColor=Color(0,0,0,1), underline=0)]
'width': 269.29133858267716
) #Paragraph
com = []
--
Don't interfere with the stranger's style.
More information about the reportlab-users
mailing list