aboutsummaryrefslogtreecommitdiffstats
path: root/writeHTML.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-05-23 02:38:55 +0000
committerNick Mathewson <nickm@torproject.org>2003-05-23 02:38:55 +0000
commita5d4c56336ec216006fe830f630b7de5dde5c67a (patch)
tree4fe39099c345876d29d8aeb4afca07101c2a6d5d /writeHTML.py
parent4c84657cc6a6cffab2e322c70423e4d3b7977ea9 (diff)
downloadanonbib-a5d4c56336ec216006fe830f630b7de5dde5c67a.tar.gz
Collapse authors with similar names; make output pass XHTML/CSS validators.
Also some author refactoring. svn:r30
Diffstat (limited to 'writeHTML.py')
-rw-r--r--writeHTML.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/writeHTML.py b/writeHTML.py
index 019795f..e5d0816 100644
--- a/writeHTML.py
+++ b/writeHTML.py
@@ -25,15 +25,15 @@ def writeBody(f, sections, section_urls):
sDisp = re.sub(r'\s+', ' ', s.strip())
sDisp = sDisp.replace(" ", "&nbsp;")
if u:
- print >>f, ('<h3><a name="%s"><a href="%s">%s</a></a></h3>'%(
+ print >>f, ('<li><h3><a name="%s"></a><a href="%s">%s</a></h3>'%(
(BibTeX.url_untranslate(s), u, sDisp)))
else:
- print >>f, ('<h3><a name="%s">%s</a></h3>'%(
+ print >>f, ('<li><h3><a name="%s">%s</a></h3>'%(
BibTeX.url_untranslate(s),sDisp))
print >>f, "<ul class='expand'>"
for e in entries:
print >>f, e.to_html()
- print >>f, "</ul>"
+ print >>f, "</ul></li>"
def writeHTML(f, sections, sectionType, fieldName, choices, section_urls={}):
"""sections: list of (sectionname, [list of BibTeXEntry])'''
@@ -57,7 +57,7 @@ def writeHTML(f, sections, sectionType, fieldName, choices, section_urls={}):
else:
choiceStr.append(choice)
- choiceStr = "<p align='center'>%s</p>" % (" | ".join(choiceStr))
+ choiceStr = ("&nbsp;|&nbsp;".join(choiceStr))
fields = { 'command_line' : "",
'sectiontypes' : sectionType,