diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-02-25 10:19:59 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-02-25 10:19:59 -0500 |
commit | a76c3c6f367565fb7153cd15ea2c08f38ecbe818 (patch) | |
tree | a9e3c72b70aaf99f900a8ff2c1c6d16c3ee05501 | |
parent | 1d27bf898a160ca20f924a1cbff534a07e9122dd (diff) | |
download | markdown-a76c3c6f367565fb7153cd15ea2c08f38ecbe818.tar.gz markdown-a76c3c6f367565fb7153cd15ea2c08f38ecbe818.tar.bz2 markdown-a76c3c6f367565fb7153cd15ea2c08f38ecbe818.zip |
Missed a set.append -> set.add.
-rw-r--r-- | markdown/extensions/toc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py index 1d6639e..bade490 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -130,7 +130,7 @@ class TocTreeprocessor(markdown.treeprocessors.Treeprocessor): used_ids = set() for c in doc.getiterator(): if "id" in c.attrib: - used_ids.append(c.attrib["id"]) + used_ids.add(c.attrib["id"]) toc_list = [] marker_found = False |