[reportlab-users] TOC fail to display entries
Robin Becker
robin at reportlab.com
Mon Oct 28 06:39:23 EDT 2013
Marcus,
instead of using the raw '<' try escaping as '<'. Paragraphs have some xml
capabilities so '<' is treated as the start of a tag.
--
Robin Becker
On 26/10/2013 02:34, Marcus Silva wrote:
> Hi,
>
> I'm facing a problem with the '<' character in a paragraph when my script
> tries to generate a TOC. For instance, in a set of entries in the TOC that
> includes a phrase like "Amount of mercurium < 20 g per unit" my TOC would
> look like:
>
> Substancies analyzed per unit .............................. 10
>
> Amount of mercurium
>
> Next topic of the document .................................. 19
>
> In the document pages the phrase is shown complete with no problem at all. I
> escaped the character using < but as I said it worked every where else
> but in the TOC.
>
> I'm using reportlab platypus 2.7 and python 2 .6.
>
> Thanks for any help on that.
>
> Regards
>
> Marcus Silva
More information about the reportlab-users
mailing list