Fix #5149 (PDB output problem with links continuing through story)

This commit is contained in:
Kovid Goyal 2010-03-23 09:40:29 +05:30
commit c39954ba99

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