diff --git a/src/calibre/ebooks/pml/pmlml.py b/src/calibre/ebooks/pml/pmlml.py index 3df24fcc86..e076148360 100644 --- a/src/calibre/ebooks/pml/pmlml.py +++ b/src/calibre/ebooks/pml/pmlml.py @@ -260,8 +260,8 @@ class PMLMLizer(object): href += '#' if href not in self.link_hrefs.keys(): self.link_hrefs[href] = 'calibre_link-%s' % len(self.link_hrefs.keys()) - href = self.link_hrefs[href] - text.append('\\q="#%s"' % href) + href = '#%s' % self.link_hrefs[href] + text.append('\\q="%s"' % href) tags.append('q') # Anchor ids