Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** flatxml2html.py 2010-03-10 18:35:45.188000000 +1100
- --- flatxml2html.original.py 2010-03-02 12:40:04.000000000 +1100
- ***************
- *** 468,478 ****
- if linktype == 'external' :
- linkhref = self.link_href[link-1]
- linkhtml = '<a href="%s">' % linkhref
- ! if len(self.link_page) >= link :
- ptarget = self.link_page[link-1] - 1
- linkhtml = '<a href="#page%04d">' % ptarget
- - else :
- - linkhtml = '<a href=""><!-- page not found -->'
- linkhtml += title + '</a>'
- pos = parares.rfind(title)
- if pos >= 0:
- --- 468,476 ----
- if linktype == 'external' :
- linkhref = self.link_href[link-1]
- linkhtml = '<a href="%s">' % linkhref
- ! else :
- ptarget = self.link_page[link-1] - 1
- linkhtml = '<a href="#page%04d">' % ptarget
- linkhtml += title + '</a>'
- pos = parares.rfind(title)
- if pos >= 0:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement