2003-06-27 Tim Waugh <twaugh@redhat.com>
* src/plugins/WebPage.py: Make source links work. svn: r1796
This commit is contained in:
parent
6004fd7956
commit
debbb57e17
@ -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.
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user