From 50f49781b0a2fb06e90f65bf93f63522ee86cb90 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 12 Aug 2016 14:04:14 -0700 Subject: [PATCH] tweak AsciiDoc backend --- gramps/gui/plug/report/_docreportdialog.py | 1 + gramps/plugins/docgen/asciidoc.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/plug/report/_docreportdialog.py b/gramps/gui/plug/report/_docreportdialog.py index f1adc6480..5267157ec 100644 --- a/gramps/gui/plug/report/_docreportdialog.py +++ b/gramps/gui/plug/report/_docreportdialog.py @@ -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) diff --git a/gramps/plugins/docgen/asciidoc.py b/gramps/plugins/docgen/asciidoc.py index 072059806..7f5076535 100644 --- a/gramps/plugins/docgen/asciidoc.py +++ b/gramps/plugins/docgen/asciidoc.py @@ -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 = ""