mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #5149: PML, external links added incorrectly.
This commit is contained in:
parent
a72fd264fe
commit
3a982d51b0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user