Fix of issue #2449

svn: r11183
This commit is contained in:
Peter Landgren 2008-10-21 20:05:11 +00:00
parent 70df4b7a4b
commit 8783bd8dbf

View File

@ -419,6 +419,8 @@ class RTFDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
#
#--------------------------------------------------------------------
def write_text(self,text,mark=None):
# Convert to unicode, just in case it's not. Fix of bug 2449.
text = unicode(text)
text = text.replace('\n','\n\\par ')
if self.opened == 0:
self.opened = 1