gnunetbib

Bibliography (BibTeX, based on AnonBib)
Log | Files | Refs | README | LICENSE

commit 372416c4cf6b464cb9607810c16a7a5a8e8b3171
parent 9d57209b963f51bcab87221c2769c56d35c7313d
Author: Nick Mathewson <nickm@torproject.org>
Date:   Thu, 28 Aug 2003 22:35:49 +0000

Add anchors to individual entries


svn:r61

Diffstat:
MBibTeX.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/BibTeX.py b/BibTeX.py @@ -407,11 +407,12 @@ class BibTeXEntry: def to_html(self): imp = self.isImportant() if imp: - res = ["<li><div class='impEntry'><p class='impEntry'>", - "<span class='title'>%s</span>"%(htmlize(self['title']))] + res = ["<li><div class='impEntry'><p class='impEntry'>" ] else: - res = ["<li><p class='entry'><span class='title'>%s</span>"%( - htmlize(self['title']))] + res = ["<li><p class='entry'"] + + res.append("<span class='title'><a name='%s'>%s</a></span>"%( + url_untranslate(self.key),htmlize(self['title']))) availability = [] for key, name in (('www_abstract_url', 'abstract'), @@ -446,7 +447,7 @@ class BibTeXEntry: res.append(".") res.append("</span><br />\n") res.append(self.biblio_to_html()) - + res.append("<a href='#%s'>&middot;</a>"%url_untranslate(self.key)) res.append("</p>"), if self.get('www_remarks'):