Superscripts in HTML and LaTeX
svn: r1503
This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user