From a24f489822581d054ba0730811401e94b0ed84fd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 May 2017 08:31:39 +0530 Subject: [PATCH] DOCX Output: Fix repeated anchor names in different HTML files leading to links int he output document pointing to incorrect locations. Fixes #1690365 [Footnotes do not work and iIncorrect position of pictures after conversion from azw3 to docx](https://bugs.launchpad.net/calibre/+bug/1690365) --- src/calibre/ebooks/docx/writer/links.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/docx/writer/links.py b/src/calibre/ebooks/docx/writer/links.py index e2cc1deff3..f2e1a27fb2 100644 --- a/src/calibre/ebooks/docx/writer/links.py +++ b/src/calibre/ebooks/docx/writer/links.py @@ -93,6 +93,7 @@ class LinksManager(object): i += 1 name = bname + ('_%d' % i) self.anchor_map[key] = name + self.used_bookmark_names.add(name) return name @property