From f4966ca793b4524ae4b0d5dd12c4043e78b6c7a0 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 16 Oct 2018 13:13:04 +0200 Subject: [PATCH] Records Report: call name not underlined in HTML Fixes #10816 --- gramps/plugins/docgen/htmldoc.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gramps/plugins/docgen/htmldoc.py b/gramps/plugins/docgen/htmldoc.py index 45bba8f41..6f2111020 100644 --- a/gramps/plugins/docgen/htmldoc.py +++ b/gramps/plugins/docgen/htmldoc.py @@ -337,6 +337,20 @@ class HtmlDoc(BaseDoc, TextDoc): self._empty = 0 self.__write_text(text, mark, links=links) + def write_markup(self, text, s_tags, mark=None): + """ + Overwrite base method + Writes the text in the current paragraph. Should only be used after a + start_paragraph and before an end_paragraph. + + @param text: text to write. The text is assumed to be _not_ escaped + @param s_tags: assumed to be list of styledtexttags to apply to the + text + @param mark: IndexMark to use for indexing + """ + markuptext = self._backend.add_markup_from_styled(text, s_tags) + self.__write_text(markuptext, mark=mark, markup=True) + def write_title(self): """ Add title field to header