diff options
author | Maxim Devaev <[email protected]> | 2022-09-20 21:06:23 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-20 21:06:23 +0300 |
commit | 647489ecd9c5420f9f32b60eb49abba89728975d (patch) | |
tree | 08fd945787b951970d6fedb8beec7f4a754efe7c /kvmd | |
parent | 66f09b16ac4635dcf17bffd63cf443ea5e55f639 (diff) |
workaround for en/em dashes
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/keyboard/printer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/keyboard/printer.py b/kvmd/keyboard/printer.py index 7261a8ef..a2003a18 100644 --- a/kvmd/keyboard/printer.py +++ b/kvmd/keyboard/printer.py @@ -50,6 +50,10 @@ def text_to_web_keys( # pylint: disable=too-many-branches ch = "'" elif ch in ["„", "“", "”"]: ch = "\"" + elif ch == "–": # Short + ch = "-" + elif ch == "—": # Long + ch = "--" if not ch.isprintable(): continue try: |