Skip to content

Commit 80e23ce

Browse files
committed
Spaces are not used elsewhere for named parameters
1 parent aee15c8 commit 80e23ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pelican/plugins/toc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def generate_toc(content):
127127
raise e
128128

129129
# Find TOC tag
130-
tocTag = soup.find('p', text = '[TOC]')
130+
tocTag = soup.find('p', text='[TOC]')
131131
if tocTag:
132132
for header in tocTag.findAllNext(header_re):
133133
settoc = True
@@ -139,7 +139,7 @@ def generate_toc(content):
139139
tree_string = '{}'.format(tree)
140140
tree_soup = BeautifulSoup(tree_string, 'html.parser')
141141
content.toc = tree_soup.decode(formatter='html')
142-
itoc = soup.find('p', text = '[TOC]')
142+
itoc = soup.find('p', text='[TOC]')
143143
if itoc:
144144
itoc.replaceWith(tree_soup)
145145

0 commit comments

Comments
 (0)