mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
no implicit {} in replacements
This commit is contained in:
parent
1b7417595e
commit
72bfedbed8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def transform_entry(entry):
|
||||||
|
|
||||||
def transform_string(msg):
|
def transform_string(msg):
|
||||||
for (old, new) in replacements:
|
for (old, new) in replacements:
|
||||||
msg = msg.replace(old, f"{{{new}}}")
|
msg = msg.replace(old, f"{new}")
|
||||||
# strip leading/trailing whitespace
|
# strip leading/trailing whitespace
|
||||||
return msg.strip()
|
return msg.strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue