PML Input: Fix bug #6770, put toc link after header so toc link goes to correct page.

This commit is contained in:
John Schember 2010-09-11 09:01:34 -04:00
parent 96478da323
commit dc7bc5dd5d

View File

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