5120: 'Export view' to odt file crashs (patch by PaulFranklin)
svn: r17986
This commit is contained in:
parent
2b9afdf45d
commit
13446491b2
@ -385,12 +385,13 @@ class ODSTab(TabbedDoc):
|
||||
self.f.write('>\n')
|
||||
|
||||
self.f.write('<text:p>')
|
||||
text = text.replace('&','&') # Must be first
|
||||
text = text.replace('<','<')
|
||||
text = text.replace('>','>')
|
||||
text = text.replace('\t','<text:tab-stop/>')
|
||||
text = text.replace('\n','<text:line-break/>')
|
||||
self.f.write(unicode(text))
|
||||
if text is not None: # it must not be just 'if text'
|
||||
text = text.replace('&','&') # Must be first
|
||||
text = text.replace('<','<')
|
||||
text = text.replace('>','>')
|
||||
text = text.replace('\t','<text:tab-stop/>')
|
||||
text = text.replace('\n','<text:line-break/>')
|
||||
self.f.write(unicode(text))
|
||||
|
||||
self.f.write('</text:p>\n')
|
||||
self.f.write('</table:table-cell>\n')
|
||||
|
Loading…
Reference in New Issue
Block a user