5120: 'Export view' to odt file crashs (patch by PaulFranklin)

svn: r17986
This commit is contained in:
Jérôme Rapinat 2011-08-02 06:02:27 +00:00
parent 2b9afdf45d
commit 13446491b2

View File

@ -385,6 +385,7 @@ class ODSTab(TabbedDoc):
self.f.write('>\n')
self.f.write('<text:p>')
if text is not None: # it must not be just 'if text'
text = text.replace('&','&amp;') # Must be first
text = text.replace('<','&lt;')
text = text.replace('>','&gt;')