mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
workaround for en/em dashes
This commit is contained in:
parent
66f09b16ac
commit
647489ecd9
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user