summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-20 21:06:23 +0300
committerMaxim Devaev <[email protected]>2022-09-20 21:06:23 +0300
commit647489ecd9c5420f9f32b60eb49abba89728975d (patch)
tree08fd945787b951970d6fedb8beec7f4a754efe7c
parent66f09b16ac4635dcf17bffd63cf443ea5e55f639 (diff)
workaround for en/em dashes
-rw-r--r--kvmd/keyboard/printer.py4
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: