From 0dcad55bb874acda1723b5ad4fe0808149230f91 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Wed, 20 Sep 2023 22:04:35 +0200 Subject: [PATCH] =?UTF-8?q?Bavlna=20byla=20broken,=20proto=C5=BEe=20se=20p?= =?UTF-8?q?=C5=99ejmenovalo=20jazykov=C3=A9=20metadatum=20a=20na=20bavlnu?= =?UTF-8?q?=20se=20zapomn=C4=9Blo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/whitespace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatitko/whitespace.py b/src/formatitko/whitespace.py index 155f5e5..bd77fc2 100644 --- a/src/formatitko/whitespace.py +++ b/src/formatitko/whitespace.py @@ -12,8 +12,8 @@ class NBSP(Space): # This function tries to determine if a space should be non-breaking. It is # language-aware and tries to be sort-of smart about its decisions. 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. # Also tries to find them inside elements, for instance # `V [odevzdávátku]()` should get correctly detected.