Browse Source

Stop adding NBSPs around TeX math. Patches welcome to make this smarter.

master
Jan Černohorský 8 months ago
parent
commit
583b3ba010
  1. 6
      src/formatitko/whitespace.py

6
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

Loading…
Cancel
Save