[reportlab-users] cjk word wrapping does not work with <br/> ?
Yuan HOng
hongyuan1306 at gmail.com
Tue May 19 04:23:59 EDT 2009
With reportlab version 2.3, in a paragraph with wordWrap='CJK', all <br/>
tags are ignored.
The test below shows a short sample and one can easily see the difference.
from reportlab.platypus import SimpleDocTemplate, Paragraph
from reportlab.lib.styles import ParagraphStyle
doc = SimpleDocTemplate("test.pdf")
p = Paragraph(u'aaa<br/>bbb',ParagraphStyle('s',wordWrap='CJK'))
p1 = Paragraph(u'aaa<br/>bbb',ParagraphStyle('s'))
story = [p, p1]
doc.build(story)
I think this is a bug?
--
Hong Yuan
大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090519/c7629645/attachment.html>
More information about the reportlab-users
mailing list