tweak AsciiDoc backend

This commit is contained in:
Paul Franklin 2016-08-12 14:04:14 -07:00
parent 4f8559f365
commit 50f49781b0
2 changed files with 2 additions and 2 deletions

View File

@ -260,6 +260,7 @@ class DocReportDialog(ReportDialog):
"""Parse the format frame of the dialog. Save the user
selected output format for later use."""
docgen_plugin = self.format_menu.get_active_plugin()
self.basedocname = docgen_plugin.get_basedocname()
self.format = docgen_plugin.get_basedoc()
format_name = docgen_plugin.get_extension()
self.options.handler.set_format_name(format_name)

View File

@ -172,8 +172,7 @@ class AsciiDoc(BaseDoc, TextDoc):
try:
self.file = open(self.filename, "w", errors='backslashreplace')
except Exception as msg:
errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
raise ReportError(errmsg)
raise ReportError(_("Could not create %s") % self.filename, msg)
self.in_cell = 0
self.text = ""