[reportlab-users] Bulleted Text not displaying

Tim Roberts timr at probo.com
Mon Oct 13 15:41:07 EDT 2008


Peter Mattingly wrote:

> For fans of the XML approach this works for that application:

>

> text = "<para leftIndent=32><bullet

> bulletIndent=15>\xe2\x80\xa2</bullet>This is bulleted text.</para>"

>

> para = Paragraph(text, style=body_style)

> story.append(para)

>

> I got the bullet character from the documentation; Who knows where

> they got that, I certainly can't find any reference that that code /

> format when I google it.


Really? Those three bytes are the UTF-8 representation of the Unicode
character U+2022, which is "Bullet". So, it could have been written:
text = u"<para leftIndent=32><bullet
bulletIndent=15>\u2202</bullet>This is bulleted text.</para>"

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list