[reportlab-users] How do I print a '&'?

Jerome Alet reportlab-users@reportlab.com
Mon, 13 Sep 2004 17:25:05 +0200


On Mon, Sep 13, 2004 at 05:20:52PM +0200, Ilja Booij wrote:
> Hi all,
> 
> reportlab's a really nice product. Thanks.
> 
> I've run into a problem. It's probably just my own mistake.
> 
> I cannot seem to output the '&' symbol when using a paragraph:
>  
> The following just prints nothing on the place of the '&':
> 
> story.append(Paragraph("IC & S", styNormal)).

try this : story.append(Paragraph("IC & S", styNormal)).

you have to use correct SGML entities for special characters

bye

Jerome Alet