Advertisement
Guest User

Untitled

a guest
Mar 10th, 2010
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.31 KB | None | 0 0
  1. *** flatxml2html.py 2010-03-10 18:35:45.188000000 +1100
  2. --- flatxml2html.original.py    2010-03-02 12:40:04.000000000 +1100
  3. ***************
  4. *** 468,478 ****
  5.                           if linktype == 'external' :
  6.                               linkhref = self.link_href[link-1]
  7.                               linkhtml = '<a href="%s">' % linkhref
  8. !                         if len(self.link_page) >= link :
  9.                               ptarget = self.link_page[link-1] - 1
  10.                               linkhtml = '<a href="#page%04d">' % ptarget
  11. -                         else :
  12. -                             linkhtml = '<a href=""><!-- page not found -->'
  13.                           linkhtml += title + '</a>'
  14.                           pos = parares.rfind(title)
  15.                           if pos >= 0:
  16. --- 468,476 ----
  17.                           if linktype == 'external' :
  18.                               linkhref = self.link_href[link-1]
  19.                               linkhtml = '<a href="%s">' % linkhref
  20. !                         else :
  21.                               ptarget = self.link_page[link-1] - 1
  22.                               linkhtml = '<a href="#page%04d">' % ptarget
  23.                           linkhtml += title + '</a>'
  24.                           pos = parares.rfind(title)
  25.                           if pos >= 0:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement