Skip to content

Commit c62bad1

Browse files
authored
Revert unescape in docs processing (boostorg#1847)
1 parent ea501cb commit c62bad1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/htmlhelper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import re
2-
from html import unescape
32

43
from bs4 import BeautifulSoup, Comment, Tag
54
from django.template.loader import render_to_string
@@ -260,7 +259,6 @@ def slightly_modernize_legacy_library_doc_page(content):
260259
el.getparent().remove(el)
261260

262261
content = html.tostring(root, encoding="unicode", method="html")
263-
content = unescape(content) # avoid escaping special characters like ń
264262
return content.replace("https://www.boost.org/doc/libs/", "/doc/libs/")
265263

266264

core/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def normalize_boost_doc_path(content_path: str) -> str:
471471
# Add a header to these, but no wrapper.
472472
"libs/array",
473473
"libs/assert",
474+
"libs/bloom",
474475
"libs/charconv",
475476
"libs/cobalt",
476477
"libs/compat",

0 commit comments

Comments
 (0)