Change file extentions in reports when different filetype is chosen

svn: r1534
This commit is contained in:
Don Allingham
2003-05-16 01:49:50 +00:00
parent 4d5f13b00e
commit 4247f38dbb
25 changed files with 142 additions and 38 deletions

View File

@ -74,7 +74,14 @@ class LaTeXDoc(TextDoc.TextDoc):
self.filename = filename + ".tex"
else:
self.filename = filename
self.f = open(self.filename,"w")
try:
self.f = open(self.filename,"w")
except IOError,msg:
errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
raise Errors.ReportError(errmsg)
except:
raise Errors.ReportError(_("Could not create %s") % self.filename)
# Font size control seems to be limited. For now, ignore
# any style constraints, and use 12pt has the default