projects
/
geekigeeki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix WordIndex and TitleIndex, improve HTML output
[geekigeeki.git]
/
macros
/
WordIndex.py
diff --git
a/macros/WordIndex.py
b/macros/WordIndex.py
index 81cd0f963ff5d137f1208b468f2fa66119e9ff8f..818a8842b9d72fc45c5fc2918090038834068dda 100755
(executable)
--- a/
macros/WordIndex.py
+++ b/
macros/WordIndex.py
@@
-17,15
+17,15
@@
def _macro_WordIndex(argv):
for word in all_words:
letter = word[0].lower()
if letter != last_letter:
for word in all_words:
letter = word[0].lower()
if letter != last_letter:
- s
= s + ';
<a name="%s"><h3>%s</h3></a>' % (letter, letter)
+ s
+= '
<a name="%s"><h3>%s</h3></a>' % (letter, letter)
last_letter = letter
last_letter = letter
- s
= s +
'<b>%s</b><ul>' % word
+ s
+=
'<b>%s</b><ul>' % word
links = map[word]
links.sort()
last_page = None
for name in links:
if name == last_page: continue
links = map[word]
links.sort()
last_page = None
for name in links:
if name == last_page: continue
- s
= s + '<li>' + Page(name).link_to()
- s
= s +
'</ul>'
+ s
+= '<li>' + link_tag(name) + '</li>'
+ s
+=
'</ul>'
return s
return s