[reportlab-users] Paragraph text with &
Juha Tuomala
Juha.Tuomala at iki.fi
Sat Feb 3 10:33:11 EST 2007
On Saturday 03 February 2007 14:15, Juha Ruotsalainen wrote:
> Juha Tuomala's hint to use "text = text.replace( '&', '&')" didn't
> work. I guess it has something to do with Python's XML parser (that's
> what Paragraph uses).
>
> See, my paragraph's contents are read from a XML file, where I have a
> text "<subject>Jack, Jim & Jill</subject>". After parsing the
> input XML via xml.dom.minidom, "&" has been converted to "&".
Well, that you didn't mention.
If your own xml parser rips the & to plain &, you need to
convert it back to & mode until feeding it to Paragraph's
own xml parser.
Tuju
--
Ajatteleva ihminen tarvitsee unta.
More information about the reportlab-users
mailing list