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.
This commit is contained in:
Paul Culley 2019-10-16 17:03:29 -05:00 committed by Sam Manzi
parent f7bd062bdb
commit 03ab64c4d5

View File

@ -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(