From 583b3ba010f38af2cfd2482995bc0706c2c8cfe1 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Tue, 27 Feb 2024 10:14:19 +0100 Subject: [PATCH] Stop adding NBSPs around TeX math. Patches welcome to make this smarter. --- src/formatitko/whitespace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/formatitko/whitespace.py b/src/formatitko/whitespace.py index bd77fc2..9bdd754 100644 --- a/src/formatitko/whitespace.py +++ b/src/formatitko/whitespace.py @@ -36,9 +36,9 @@ def bavlna(e: Whitespace, c: Context) -> bool: if prevC in operators and nextC in numbers: return True - if isinstance(e.prev, Math) or isinstance(e.next, Math): - # Add no-break spaces around TeX math. - return True +# if isinstance(e.prev, Math) or isinstance(e.next, Math): +# # Add no-break spaces around TeX math. +# return True