2008-01-06 Benny Malengier <benny.malengier@gramps-project.org>

Raphael Ackermann <raphael.ackermann@gmail.com>
	* src/docgen/LaTeXDoc.py: wrong indent on write, bug #1506


svn: r9718
This commit is contained in:
Benny Malengier 2008-01-06 08:58:27 +00:00
parent 5c8214c843
commit d003fd55a7
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2008-01-06 Benny Malengier <benny.malengier@gramps-project.org>
Raphael Ackermann <raphael.ackermann@gmail.com>
* src/docgen/LaTeXDoc.py: wrong indent on write, bug #1506
2008-01-06 Brian Matherly <brian@gramps-project.org> 2008-01-06 Brian Matherly <brian@gramps-project.org>
Raphael Ackermann <raphael.ackermann@gmail.com> Raphael Ackermann <raphael.ackermann@gmail.com>
James Friedmann <jfriedmannj@gmail.com> James Friedmann <jfriedmannj@gmail.com>

View File

@ -500,12 +500,12 @@ class LaTeXDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
"""Write the text to the file""" """Write the text to the file"""
if text == '\n': if text == '\n':
text = '\\newline\n' text = '\\newline\n'
text = text.replace('#','\#') text = text.replace('#','\#')
text = text.replace('&','\&') text = text.replace('&','\&')
text = text.replace('<super>','\\textsuperscript{') text = text.replace('<super>','\\textsuperscript{')
text = text.replace('</super>','}') text = text.replace('</super>','}')
text = text.replace('_____________','\\underline{\hspace{3cm}}') text = text.replace('_____________','\\underline{\hspace{3cm}}')
self.f.write(text) self.f.write(text)
#------------------------------------------------------------------------ #------------------------------------------------------------------------