Hi all,
just joined this list to report a little bug in the zetadb-version I
have:
When inserting strings into an OOo-Document that consist of single
ampersands ("&"-charachters), OpenOffice.org refuses to open the
document.
So I added these lines to zetadb_openoffice.py:
somewhere at the beginning:
-------------------------------
import re
-------------------------------
and in the method zetadb_oo_add_object:
-------------------------------
if (id == 'content.xml'):
content = dedent_xml(content)
content = re.sub('&(?!\w+;)','&',content)
else:
-------------------------------
the line with "re.sub" is new: it takes care of "&"-characters that are
not part of a Latin-1 string and changes it to "&".
Maybe Santi will put that into cvs as well?
Regards,
Martin
--
agami systems integration, Martin Winkler
Taborstrasse 11b/II/26c, A 1020 Wien, www.agami.at
Tel: 01 / 890 90 12, Office & Support: 0699 1 AGAMI 88
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|