File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
237237def minimize_uris (content : str ) -> str :
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments