diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 7ac79bfe5..d4c65d553 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1114,6 +1114,7 @@ class EditorWebView(AnkiWebView): # use non-breaking spaces for the second one on def repl(match): return match.group(1).replace(" ", " ") + " " + token = re.sub(" ( +)", repl, token) processed.append(token)