We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee15c8 commit 80e23ceCopy full SHA for 80e23ce
pelican/plugins/toc.py
@@ -127,7 +127,7 @@ def generate_toc(content):
127
raise e
128
129
# Find TOC tag
130
- tocTag = soup.find('p', text = '[TOC]')
+ tocTag = soup.find('p', text='[TOC]')
131
if tocTag:
132
for header in tocTag.findAllNext(header_re):
133
settoc = True
@@ -139,7 +139,7 @@ def generate_toc(content):
139
tree_string = '{}'.format(tree)
140
tree_soup = BeautifulSoup(tree_string, 'html.parser')
141
content.toc = tree_soup.decode(formatter='html')
142
- itoc = soup.find('p', text = '[TOC]')
+ itoc = soup.find('p', text='[TOC]')
143
if itoc:
144
itoc.replaceWith(tree_soup)
145
0 commit comments