PROPERLY escape ampersands in ODFDoc.py

svn: r8405
This commit is contained in:
Brian Matherly 2007-04-20 03:48:21 +00:00
parent 49e2ef5267
commit bd4fd1f9f8
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2007-04-19 Brian Matherly <brian@gramps-project.org>
* src/docgen/ODFDoc.py: PROPERLY escape ampersands
2007-04-18 Don Allingham <don@gramps-project.org> 2007-04-18 Don Allingham <don@gramps-project.org>
* src/plugins/BookReport.py: escape xml constructs (bug 877) * src/plugins/BookReport.py: escape xml constructs (bug 877)
* src/PluginUtils/_Options.py: escape xml constructs (bug 877) * src/PluginUtils/_Options.py: escape xml constructs (bug 877)

View File

@ -995,7 +995,7 @@ class ODFDoc(BaseDoc.BaseDoc):
self.cntnt.write('<text:p text:style-name="X%s"> ' % pname) self.cntnt.write('<text:p text:style-name="X%s"> ' % pname)
self.cntnt.write('<text:span text:style-name="F%s">\n' % pname) self.cntnt.write('<text:span text:style-name="F%s">\n' % pname)
self.write_text('\n'.join(escape(text))) self.write_text(escape('\n'.join(text)))
self.cntnt.write('</text:span>\n</text:p>\n</draw:text-box>\n') self.cntnt.write('</text:span>\n</text:p>\n</draw:text-box>\n')
self.cntnt.write('</draw:frame>\n') self.cntnt.write('</draw:frame>\n')