Skip to content

Commit 2e3411a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 672f8aa commit 2e3411a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinx_sitemap/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def add_html_link(app: Sphinx, pagename: str, templatename, context, doctree):
143143
else:
144144
sitemap_link = pagename + "/"
145145
else:
146-
sitemap_link = (pagename + file_suffix) if app.config.sitemap_suffix_included else pagename
146+
sitemap_link = (
147+
(pagename + file_suffix) if app.config.sitemap_suffix_included else pagename
148+
)
147149

148150
env.app.sitemap_links.put(sitemap_link) # type: ignore
149151

0 commit comments

Comments
 (0)