Better handling of output format types, including user's preference

svn: r91
This commit is contained in:
Don Allingham
2001-06-05 04:40:37 +00:00
parent d3b6851fee
commit 2860dad670
11 changed files with 1138 additions and 1052 deletions

View File

@@ -22,6 +22,9 @@ import os
import tempfile
import string
import re
import intl
_ = intl.gettext
from TextDoc import *
import const
@@ -69,7 +72,7 @@ class HtmlDoc(TextDoc):
top_add = 1
bottom_add = 0
if self.template != "":
if self.template and self.template != "":
try:
templateFile = open(self.template,"r")
for line in templateFile.readlines():