[ACCEPTED]-How to create a bulleted list in ReportLab-reportlab

Accepted answer
Score: 10

The bulletText argument is actually a constructor 7 to the Paragraph object, not the <para> tag :-) Try this:

story.append(Paragraph(text, TEXT_STYLE, bulletText='-'))

Have 6 a look at the examples on page 68 (page 5 74 now, in 2012) of the ReportLab Documentation, though. The convention 4 in ReportLab seems to be to use the <bullet> tag, and 3 the docs do warn that you can have only 2 one per Paragraph instance. We render our bullets 1 in ReportLab like so:

story.append(Paragraph('<bullet>The rain in spain</bullet>', TEXT_STYLE))
Score: 10

The very recent versions of ReportLab have 2 ListFlowable and ListItem objects (check 1 Chapter 9 of the current user guide).

More Related questions