mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
workaround for en/em dashes
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user