From 2d9fb083dc0b0b7751daeb6d1751907d0a44f01b Mon Sep 17 00:00:00 2001 From: the_og Date: Tue, 7 Jul 2026 20:56:14 -0400 Subject: [PATCH] Fix: correct smart-quote/nbsp characters mangled in previous push --- bcc_core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bcc_core.py b/bcc_core.py index 909df23..1edc990 100644 --- a/bcc_core.py +++ b/bcc_core.py @@ -465,13 +465,13 @@ def suggest_name(data: dict) -> str: # Word-processor / web artifacts mapped back to ASCII. _QUOTE_MAP = { - """: '"', - """: '"', + "“": '"', + "”": '"', "„": '"', "«": '"', "»": '"', - "'": "'", - "'": "'", + "‘": "'", + "’": "'", "‚": "'", } _JUNK_CHARS = "​‌‍" # zero-width chars / BOM @@ -493,7 +493,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: