Fix bug #5149: PML, external links added incorrectly.

This commit is contained in:
John Schember 2010-03-22 19:25:24 -04:00
parent a72fd264fe
commit 3a982d51b0

View File

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