Browse Source

Bavlna byla broken, protože se přejmenovalo jazykové metadatum a na bavlnu se zapomnělo.

katex-socket
Jan Černohorský 1 year ago
parent
commit
0dcad55bb8
  1. 2
      src/formatitko/whitespace.py

2
src/formatitko/whitespace.py

@ -13,7 +13,7 @@ class NBSP(Space):
# language-aware and tries to be sort-of smart about its decisions. # language-aware and tries to be sort-of smart about its decisions.
def bavlna(e: Whitespace, c: Context) -> bool: def bavlna(e: Whitespace, c: Context) -> bool:
if c.get_metadata("language") == "cs": if c.get_metadata("lang") == "cs":
# Add no-break space after single letter prepositions and conjunctions. # Add no-break space after single letter prepositions and conjunctions.
# Also tries to find them inside elements, for instance # Also tries to find them inside elements, for instance
# `V [odevzdávátku]()` should get correctly detected. # `V [odevzdávátku]()` should get correctly detected.

Loading…
Cancel
Save