From 9760b1537e0fae18211ed032172ebe37a5d8ebe8 Mon Sep 17 00:00:00 2001 From: the_og Date: Tue, 7 Jul 2026 20:23:44 -0400 Subject: [PATCH] fix: restore non-breaking-space literal lost in transcription MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit accidentally normalized the non-breaking space (U+00A0) in _normalize_unicode's replace() call to a regular space during a copy/paste, turning that replace() into a no-op. Use an explicit   escape instead of the literal character so it can't be silently corrupted again. --- bcc_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcc_core.py b/bcc_core.py index 3f952c1..7cfd574 100644 --- a/bcc_core.py +++ b/bcc_core.py @@ -499,7 +499,7 @@ 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 + out = out.replace(" ", " ") # non-breaking space for smart, ascii_q in _QUOTE_MAP.items(): out = out.replace(smart, ascii_q) if out != text: