mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20: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 = "'"
|
ch = "'"
|
||||||
elif ch in ["„", "“", "”"]:
|
elif ch in ["„", "“", "”"]:
|
||||||
ch = "\""
|
ch = "\""
|
||||||
|
elif ch == "–": # Short
|
||||||
|
ch = "-"
|
||||||
|
elif ch == "—": # Long
|
||||||
|
ch = "--"
|
||||||
if not ch.isprintable():
|
if not ch.isprintable():
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user