From 3bdf23af3862b171ec11e929d1c3bb52924c0cee Mon Sep 17 00:00:00 2001 From: Pete Date: Wed, 3 Jul 2024 09:58:38 +0200 Subject: [PATCH] style: Format Python with tox --- canonicalwebteam/discourse/parsers/base_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/canonicalwebteam/discourse/parsers/base_parser.py b/canonicalwebteam/discourse/parsers/base_parser.py index 6a2c877..cf4d216 100644 --- a/canonicalwebteam/discourse/parsers/base_parser.py +++ b/canonicalwebteam/discourse/parsers/base_parser.py @@ -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