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 += '#'
|
href += '#'
|
||||||
if href not in self.link_hrefs.keys():
|
if href not in self.link_hrefs.keys():
|
||||||
self.link_hrefs[href] = 'calibre_link-%s' % len(self.link_hrefs.keys())
|
self.link_hrefs[href] = 'calibre_link-%s' % len(self.link_hrefs.keys())
|
||||||
href = self.link_hrefs[href]
|
href = '#%s' % self.link_hrefs[href]
|
||||||
text.append('\\q="#%s"' % href)
|
text.append('\\q="%s"' % href)
|
||||||
tags.append('q')
|
tags.append('q')
|
||||||
|
|
||||||
# Anchor ids
|
# Anchor ids
|
||||||
|
Loading…
x
Reference in New Issue
Block a user