From 54931d3a6a9b9629a6a5eaba35976f1ac3e81ac2 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 8 May 2003 00:42:10 +0000 Subject: [PATCH] Superscripts in HTML and LaTeX svn: r1503 --- gramps2/src/docgen/HtmlDoc.py | 2 ++ gramps2/src/docgen/LaTeXDoc.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gramps2/src/docgen/HtmlDoc.py b/gramps2/src/docgen/HtmlDoc.py index b540d952c..369aa680e 100644 --- a/gramps2/src/docgen/HtmlDoc.py +++ b/gramps2/src/docgen/HtmlDoc.py @@ -408,6 +408,8 @@ class HtmlDoc(TextDoc.TextDoc): text = string.replace(text,'<','<'); text = string.replace(text,'>','>'); text = string.replace(text,'\n','
') + text = text.replace('<super>','') + text = text.replace('</super>','') if text != "": self.empty = 0 self.f.write(text) diff --git a/gramps2/src/docgen/LaTeXDoc.py b/gramps2/src/docgen/LaTeXDoc.py index 5fb5317a6..ad45b8ef7 100644 --- a/gramps2/src/docgen/LaTeXDoc.py +++ b/gramps2/src/docgen/LaTeXDoc.py @@ -381,6 +381,8 @@ class LaTeXDoc(TextDoc.TextDoc): if text == '\n': text = '\\newline\n' text = string.replace(text,'#','\#') + text = text.replace('','\\textsuperscript{') + text = text.replace('','}') self.f.write(text)