From 7c8fd6d0bbb0b29878e134335032ab19686157be Mon Sep 17 00:00:00 2001 From: the_og Date: Tue, 7 Jul 2026 20:34:53 -0400 Subject: [PATCH] fix: use explicit backslash-u-0-0-a-0 escape for non-breaking space literal --- bcc_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bcc_core.py b/bcc_core.py index e5bcc46..84f1171 100644 --- a/bcc_core.py +++ b/bcc_core.py @@ -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: