From f5bbe866d1b11d1d598c84c6dfeea586813bb3c6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 9 Jun 2001 03:19:39 +0000 Subject: [PATCH] Remove debugging statements svn: r106 --- gramps/src/HtmlDoc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/src/HtmlDoc.py b/gramps/src/HtmlDoc.py index fa3336067..23e50f990 100644 --- a/gramps/src/HtmlDoc.py +++ b/gramps/src/HtmlDoc.py @@ -73,11 +73,9 @@ class HtmlDoc(TextDoc): top_add = 1 bottom_add = 0 - print "Template name is",self.template if self.template and self.template != "": try: templateFile = open(self.template,"r") - print "template opened" for line in templateFile.readlines(): if top_add == 1: self.top.append(line) @@ -92,6 +90,7 @@ class HtmlDoc(TextDoc): else: self.bottom.append(line) templateFile.close() + if top_add == 1: mymsg = _("The marker '' was not in the template") gnome.ui.GnomeErrorDialog(mymsg) @@ -122,6 +121,7 @@ class HtmlDoc(TextDoc): self.filename = filename + ".html" self.f = open(self.filename,"w") + for line in self.top: self.f.write(line) @@ -193,7 +193,8 @@ class HtmlDoc(TextDoc): def start_table(self,name,style): self.tbl = self.table_styles[style] - self.f.write('\n' % self.tbl.get_width()) + self.f.write('
\n') def end_table(self): self.f.write('
\n')