Re: TOC fail to display entries

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
Marcus,

instead of using the raw '<' try escaping as '&lt;'. 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 &lt; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.