Skip to content

Commit

Permalink
style: Format Python with tox
Browse files Browse the repository at this point in the history
  • Loading branch information
petesfrench committed Jul 3, 2024
1 parent 6bf9129 commit 3bdf23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions canonicalwebteam/discourse/parsers/base_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,10 @@ def _add_anchor_links(self, soup):
if anchor:
heading_text = heading.get_text()
anchor.clear()
anchor.append(BeautifulSoup(heading_text, 'html.parser'))
anchor.append(BeautifulSoup(heading_text, "html.parser"))
anchor["class"] = "p-link--anchor-heading"
for content in heading.contents:
if isinstance(content, NavigableString):
content.replace_with("")

return soup

0 comments on commit 3bdf23a

Please sign in to comment.