diff options
| author | Nick Mathewson <nickm@torproject.org> | 2003-08-28 22:35:49 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2003-08-28 22:35:49 +0000 |
| commit | d3acfd8b215920491745f462d08fcd5e963a52ca (patch) | |
| tree | 4e09c3279b75bca554679d2d0e2a0c78eb4de346 | |
| parent | 25d0e8cfa7274f6746484544153b675e921bf267 (diff) | |
| download | anonbib-d3acfd8b215920491745f462d08fcd5e963a52ca.tar.gz | |
Add anchors to individual entries
svn:r61
| -rw-r--r-- | BibTeX.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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'>·</a>"%url_untranslate(self.key)) res.append("</p>"), if self.get('www_remarks'): |
