Skip to content

Commit 88d5fcf

Browse files
authored
Resolve issue with docs content spacing (boostorg#1953) (boostorg#1954)
1 parent 086bf94 commit 88d5fcf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/htmlhelper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def modernize_legacy_page(
180180

181181
if soup.html is None:
182182
# Not an HTML file we care about
183-
return soup.prettify(formatter="html")
183+
return str(soup)
184184

185185
# Remove CSS classes that produce visual harm
186186
for tag_name, tag_attrs in REMOVE_CSS_CLASSES:
@@ -231,7 +231,7 @@ def modernize_legacy_page(
231231
# Remove tags from the base template
232232
soup = hide_tags(soup, HIDE_TAGS_BASE)
233233

234-
return soup.prettify(formatter="html")
234+
return str(soup)
235235

236236

237237
def minimize_uris(content: str) -> str:

core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def process_content(self, content: bytes):
526526
soup = self._required_modernization_changes(soup)
527527

528528
context = {
529-
"content": str(soup.prettify()),
529+
"content": str(soup),
530530
"canonical_uri": canonical_uri if canonical_uri != req_uri else None,
531531
}
532532
template_name = "original_docs.html"

0 commit comments

Comments
 (0)