From 03ab64c4d5be2063010d9ec0a638401def4a064a Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Wed, 16 Oct 2019 17:03:29 -0500 Subject: [PATCH] Fix improper escaping in odt output for TOC/Bookmark etc. (#928) Fixes #11378 For the index, toc, bookmark etc. normal XML escape is correct, the original code also added sub-tags for line break and tab which was NOT correct. --- gramps/plugins/docgen/odfdoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/docgen/odfdoc.py b/gramps/plugins/docgen/odfdoc.py index 7a0c21be8..692850e12 100644 --- a/gramps/plugins/docgen/odfdoc.py +++ b/gramps/plugins/docgen/odfdoc.py @@ -1541,7 +1541,7 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc): Insert a mark at this point in the document. """ if mark: - key = escape(mark.key, ESC_MAP) + key = escape(mark.key) key = key.replace('"', '"') if mark.type == INDEX_TYPE_ALP: self.cntnt.write(