From af1140858ef6a92400aaf2bcef2a35e5c87d20e8 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 27 Jun 2003 14:36:24 +0000 Subject: [PATCH] 2003-06-27 Tim Waugh * src/plugins/WebPage.py: Make source links work. svn: r1796 --- ChangeLog | 1 + src/plugins/WebPage.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 137c8746f..7d9ee5849 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2003-06-27 Tim Waugh + * 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. diff --git a/src/plugins/WebPage.py b/src/plugins/WebPage.py index 1276bb84d..8b162ff26 100644 --- a/src/plugins/WebPage.py +++ b/src/plugins/WebPage.py @@ -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('' % path) + def start_link(self,path): self.f.write('' % 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())