Add class to ToC <li>s.

This commit is contained in:
Max Goodman
2013-04-24 23:42:49 -07:00
parent fb28149495
commit 356a90b947

View File

@@ -308,7 +308,7 @@ def generate_table_of_contents(soup, prefix):
header['id'] = aid
li = Tag(soup, "li")
li = Tag(soup, "li", [("class", aid)])
a = Tag(soup, "a", [("href", "#%s" % aid)])
a.string = contents
li.append(a)