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:
parent
f7bd062bdb
commit
03ab64c4d5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user