mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PML Input: Fix bug #6770, put toc link after header so toc link goes to correct page.
This commit is contained in:
parent
96478da323
commit
dc7bc5dd5d
@ -556,7 +556,7 @@ class PML_HTMLizer(object):
|
||||
text = t
|
||||
else:
|
||||
self.toc.add_item(os.path.basename(self.file_name), id, value)
|
||||
text = '<span id="%s"></span>%s' % (id, t)
|
||||
text = '%s<span id="%s"></span>' % (t, id)
|
||||
elif c == 'm':
|
||||
empty = False
|
||||
src = self.code_value(line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user