From f278d96e542245c41e15208c77fdac6706ebc745 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 14 Jun 2003 03:49:09 +0000 Subject: [PATCH] * src/docgen/RTFDoc.py: add support for superscripts svn: r1731 --- gramps2/src/docgen/RTFDoc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gramps2/src/docgen/RTFDoc.py b/gramps2/src/docgen/RTFDoc.py index a202f382f..be8216fd3 100644 --- a/gramps2/src/docgen/RTFDoc.py +++ b/gramps2/src/docgen/RTFDoc.py @@ -362,6 +362,7 @@ class RTFDoc(TextDoc.TextDoc): if self.opened == 0: self.opened = 1 self.text = self.text + '{%s ' % self.font_type + for i in text: if ord(i) > 127: self.text = self.text + '\\\'%2x' % ord(i) @@ -370,4 +371,7 @@ class RTFDoc(TextDoc.TextDoc): else: self.text = self.text + i + self.text = self.text.replace('','{{\*\updnprop5801}\up10 ') + self.text = self.text.replace('','}}') + Plugins.register_text_doc(_("Rich Text Format (RTF)"),RTFDoc,1,1,1,".rtf")