Stop adding NBSPs around TeX math. Patches welcome to make this smarter.
This commit is contained in:
parent
9ccd2886b9
commit
583b3ba010
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ def bavlna(e: Whitespace, c: Context) -> bool:
|
||||||
if prevC in operators and nextC in numbers:
|
if prevC in operators and nextC in numbers:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(e.prev, Math) or isinstance(e.next, Math):
|
# if isinstance(e.prev, Math) or isinstance(e.next, Math):
|
||||||
# Add no-break spaces around TeX math.
|
# # Add no-break spaces around TeX math.
|
||||||
return True
|
# return True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue