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
|
"""Parse the format frame of the dialog. Save the user
|
||||||
selected output format for later use."""
|
selected output format for later use."""
|
||||||
docgen_plugin = self.format_menu.get_active_plugin()
|
docgen_plugin = self.format_menu.get_active_plugin()
|
||||||
|
self.basedocname = docgen_plugin.get_basedocname()
|
||||||
self.format = docgen_plugin.get_basedoc()
|
self.format = docgen_plugin.get_basedoc()
|
||||||
format_name = docgen_plugin.get_extension()
|
format_name = docgen_plugin.get_extension()
|
||||||
self.options.handler.set_format_name(format_name)
|
self.options.handler.set_format_name(format_name)
|
||||||
|
@ -172,8 +172,7 @@ class AsciiDoc(BaseDoc, TextDoc):
|
|||||||
try:
|
try:
|
||||||
self.file = open(self.filename, "w", errors='backslashreplace')
|
self.file = open(self.filename, "w", errors='backslashreplace')
|
||||||
except Exception as msg:
|
except Exception as msg:
|
||||||
errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
|
raise ReportError(_("Could not create %s") % self.filename, msg)
|
||||||
raise ReportError(errmsg)
|
|
||||||
|
|
||||||
self.in_cell = 0
|
self.in_cell = 0
|
||||||
self.text = ""
|
self.text = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user