2003-06-27 Tim Waugh <twaugh@redhat.com>

* src/plugins/WebPage.py: Make source links work.


svn: r1796
This commit is contained in:
Tim Waugh 2003-06-27 14:36:24 +00:00
parent 6004fd7956
commit debbb57e17
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2003-06-27 Tim Waugh <twaugh@redhat.com>
* src/plugins/WebPage.py: Make source links work.
* src/EditPerson.py: Place keys are unicode.
* src/plugins/Ancestors.py: Include source reference notes. Made
source citation optional. Adjusted styles.

View File

@ -82,6 +82,9 @@ class HtmlLinkDoc(HtmlDoc.HtmlDoc):
"""
Version of the HtmlDoc class the provides the ability to create a link
"""
def write_linktarget(self,path):
self.f.write('<A NAME="%s"></A>' % path)
def start_link(self,path):
self.f.write('<A HREF="%s">' % path)
@ -208,9 +211,8 @@ class IndividualPage:
index = 1
for sref in self.slist:
self.doc.start_paragraph("SourceParagraph")
self.doc.start_link("s%d" % index)
self.doc.write_linktarget("s%d" % index)
self.doc.write_text('%d. ' % index)
self.doc.end_link()
index = index + 1
self.write_info(sref.getBase().getTitle())
self.write_info(sref.getBase().getAuthor())