[reportlab-users] A jerkwater bug in 'reportlab/platypus/paragraph.py'

Andy Robinson andy at reportlab.com
Wed Jun 18 02:24:24 EDT 2008


At this point we wanted to ensure link became a UTF8 string, so it
looks correct to me. What symptoms do you get? Can you give us some
failing code?

- Andy

On 18/06/2008, 张昆张昆 <time_song at hotmail.com> wrote:

> Hello everybody

>

> Thanks for this greateful project. Today i find a jerkwater bug in

> paragraph.py.

>

> Line 412-413:

>

> if type(link) is unicode: link = unicode.encode('utf8')

>

> I think it should like below, but i'm incertitude:

>

> if type(link) is str: link = link.encode('utf8')

>

> Thanks and best regards,

> Timesong

> _________________________________________________________________

> 新年换新颜,快来妆扮自己的MSN给心仪的TA一个惊喜!

> http://im.live.cn/emoticons/?ID=18



--
Andy Robinson
CEO/Chief Architect
ReportLab Europe Ltd.
165 The Broadway, Wimbledon, London SW19 1NE, UK
Tel +44-20-8544-8049


More information about the reportlab-users mailing list