Superscripts in HTML and LaTeX
svn: r1503
This commit is contained in:
parent
1e9202ac0d
commit
f2e22535cc
@ -408,6 +408,8 @@ class HtmlDoc(TextDoc.TextDoc):
|
||||
text = string.replace(text,'<','<');
|
||||
text = string.replace(text,'>','>');
|
||||
text = string.replace(text,'\n','<br>')
|
||||
text = text.replace('<super>','<sup>')
|
||||
text = text.replace('</super>','</sup>')
|
||||
if text != "":
|
||||
self.empty = 0
|
||||
self.f.write(text)
|
||||
|
@ -381,6 +381,8 @@ class LaTeXDoc(TextDoc.TextDoc):
|
||||
if text == '\n':
|
||||
text = '\\newline\n'
|
||||
text = string.replace(text,'#','\#')
|
||||
text = text.replace('<super>','\\textsuperscript{')
|
||||
text = text.replace('</super>','}')
|
||||
self.f.write(text)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user