* src/docgen/HtmlDoc.py (write_note): Use stypes for preformatted note.

svn: r2506
This commit is contained in:
Alex Roitman 2003-12-12 02:34:29 +00:00
parent 6e79027390
commit b48ab4a70b
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,6 @@
2003-12-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/PdfDoc.py (draw_text): Remove extra ",".
* src/docgen/HtmlDoc.py (write_note): Use stypes for preformatted note.
2003-12-10 Don Allingham <dallingham@users.sourceforge.net>
* src/GrampsCfg.py: Make sure to return "BOTH" if the gnome

View File

@ -437,11 +437,9 @@ class HtmlDoc(BaseDoc.BaseDoc):
def write_note(self,text,format,style_name):
if format == 1:
self.start_paragraph(style_name)
self.f.write('<pre>')
self.f.write('<pre class=%s>' % style_name)
self.write_text(text)
self.f.write('</pre>')
self.end_paragraph()
elif format == 0:
for line in text.split('\n\n'):
self.start_paragraph(style_name)