2003-08-19 Tim Waugh <twaugh@redhat.com>

* src/docgen/OpenDrawDoc.py: Fixed escaping.


svn: r2028
This commit is contained in:
Tim Waugh 2003-08-19 18:21:57 +00:00
parent aa861a39db
commit 2844e6b3fa
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2003-08-19 Tim Waugh <twaugh@redhat.com>
* src/docgen/OpenDrawDoc.py: Fixed escaping.
2003-08-19 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps_main.py (build_backhistmenu,build_fwdhistmenu):
Add a limit of 20 for the Back/Forward history popup menus.

View File

@ -375,10 +375,10 @@ class OpenDrawDoc(DrawDoc.DrawDoc):
def write_text(self,text):
text = text.replace('&','&amp;'); # Must be first
text = text.replace('\t','<text:tab-stop/>')
text = text.replace('\n','<text:line-break/>')
text = text.replace('<','&lt;');
text = text.replace('>','&gt;');
text = text.replace('\t','<text:tab-stop/>')
text = text.replace('\n','<text:line-break/>')
text = text.replace('&lt;super&gt;','<text:span text:style-name="GSuper">')
text = text.replace('&lt;/super&gt;','</text:span>')
self.f.write(text)