From 8783bd8dbf75e98986f8adfa4bbebff7bd49494f Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 21 Oct 2008 20:05:11 +0000 Subject: [PATCH] Fix of issue #2449 svn: r11183 --- src/docgen/RTFDoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docgen/RTFDoc.py b/src/docgen/RTFDoc.py index fa0c097db..9e44618bd 100644 --- a/src/docgen/RTFDoc.py +++ b/src/docgen/RTFDoc.py @@ -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