fix: use explicit backslash-u-0-0-a-0 escape for non-breaking space literal

This commit is contained in:
2026-07-07 20:34:53 -04:00
parent 346d0aabb6
commit 7c8fd6d0bb
+2 -1
View File
@@ -474,7 +474,8 @@ def _normalize_unicode(text: str, notes: list[str]) -> str:
out = text
for junk in _JUNK_CHARS:
out = out.replace(junk, "")
out = out.replace(" ", " ") # non-breaking space
NBSP = chr(0xA0)
out = out.replace(NBSP, " ") # non-breaking space
for smart, ascii_q in _QUOTE_MAP.items():
out = out.replace(smart, ascii_q)
if out != text: