diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-03-14 23:22:10 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-01-13 15:43:54 -0500 |
commit | 9ea3bdefbb62165c5c060852c60bfb5acd2574f1 (patch) | |
tree | 70d14a172fe302d5b233fe8ad70efc2713d1cae6 /markdown/extensions/toc.py | |
parent | 3fad73031e544de6c9f74621de923da3806a6c21 (diff) | |
download | markdown-9ea3bdefbb62165c5c060852c60bfb5acd2574f1.tar.gz markdown-9ea3bdefbb62165c5c060852c60bfb5acd2574f1.tar.bz2 markdown-9ea3bdefbb62165c5c060852c60bfb5acd2574f1.zip |
Improve test coverage.
Diffstat (limited to 'markdown/extensions/toc.py')
-rw-r--r-- | markdown/extensions/toc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py index f884f9b..d2ea45e 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -178,7 +178,7 @@ class TocTreeprocessor(Treeprocessor): c.text = "" for elem in c: anchor.append(elem) - while c: + while len(c): c.remove(c[0]) c.append(anchor) @@ -304,5 +304,5 @@ class TocExtension(Extension): self.md.toc = '' -def makeExtension(*args, **kwargs): +def makeExtension(*args, **kwargs): # pragma: no cover return TocExtension(*args, **kwargs) |