From 3a982d51b0d062a965aeac679ffd334f00490a2a Mon Sep 17 00:00:00 2001 From: John Schember Date: Mon, 22 Mar 2010 19:25:24 -0400 Subject: [PATCH] Fix bug #5149: PML, external links added incorrectly. --- src/calibre/ebooks/pml/pmlml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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