From 92b2a3ebae23f911ddd7d03309ea5c89193e3d2a Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 21 Oct 2008 19:54:23 +0000 Subject: [PATCH] Fix of issue #2449 svn: r11182 --- src/docgen/RTFDoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docgen/RTFDoc.py b/src/docgen/RTFDoc.py index 124900722..5885b59d5 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): + # Covert all text to unicode, just in case it's not. Solves bug #2447. + text=unicode(text) text = text.replace('\n','\n\\par ') if self.opened == 0: self.opened = 1