PROPERLY escape ampersands in ODFDoc.py

svn: r8406
This commit is contained in:
Brian Matherly 2007-04-20 03:58:03 +00:00
parent 5face56141
commit 1c2514d9b2
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-19 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/DisplayModels/_NoteModel.py: colorize using marker

View File

@ -998,7 +998,7 @@ class ODFDoc(BaseDoc.BaseDoc):
self.cntnt.write('<text:p text:style-name="X%s"> ' % 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('</draw:frame>\n')