mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Add class to ToC <li>s.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user