Remove debugging statements

svn: r106
This commit is contained in:
Don Allingham 2001-06-09 03:19:39 +00:00
parent 748bda0ea6
commit f5bbe866d1

View File

@ -73,11 +73,9 @@ class HtmlDoc(TextDoc):
top_add = 1 top_add = 1
bottom_add = 0 bottom_add = 0
print "Template name is",self.template
if self.template and self.template != "": if self.template and self.template != "":
try: try:
templateFile = open(self.template,"r") templateFile = open(self.template,"r")
print "template opened"
for line in templateFile.readlines(): for line in templateFile.readlines():
if top_add == 1: if top_add == 1:
self.top.append(line) self.top.append(line)
@ -92,6 +90,7 @@ class HtmlDoc(TextDoc):
else: else:
self.bottom.append(line) self.bottom.append(line)
templateFile.close() templateFile.close()
if top_add == 1: if top_add == 1:
mymsg = _("The marker '<!-- START -->' was not in the template") mymsg = _("The marker '<!-- START -->' was not in the template")
gnome.ui.GnomeErrorDialog(mymsg) gnome.ui.GnomeErrorDialog(mymsg)
@ -122,6 +121,7 @@ class HtmlDoc(TextDoc):
self.filename = filename + ".html" self.filename = filename + ".html"
self.f = open(self.filename,"w") self.f = open(self.filename,"w")
for line in self.top: for line in self.top:
self.f.write(line) self.f.write(line)
@ -193,7 +193,8 @@ class HtmlDoc(TextDoc):
def start_table(self,name,style): def start_table(self,name,style):
self.tbl = self.table_styles[style] self.tbl = self.table_styles[style]
self.f.write('<table width="%d%%" cellspacing="0">\n' % self.tbl.get_width()) self.f.write('<table width="%d%%" ' % self.tbl.get_width())
self.f.write('cellspacing="0">\n')
def end_table(self): def end_table(self):
self.f.write('</table>\n') self.f.write('</table>\n')