tweak AsciiDoc backend
This commit is contained in:
parent
4f8559f365
commit
50f49781b0
@ -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)
|
||||
|
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user