[reportlab-users] cjk splitting problem

Robin Becker robin at reportlab.com
Wed Jul 29 12:23:52 EDT 2009


Volker Haas wrote:

> I believe I just ran into a bug when trying to render some japanese

> text. Splitting a paragraph (pagebreak) seems to fail when

>

> * paragraph.style.wordWrap = 'CJK'

> * the paragraph contains mulitple "fragments" (links, images or simple

> <i> tags in my example)

>

> See the attached minimal example.

>

> Regards,

> Volker

.....
Volker, I have re-arranged the code in the CJK break lines function and I think
it now works in that it allows splitting in the multi-fragment case.

I attach a zip containing the modified paragraph.py. Can you try this out?
--
Robin Becker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newpara.zip
Type: application/x-zip-compressed
Size: 17038 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090729/a7c22cef/attachment.bin>


More information about the reportlab-users mailing list