Skip to content

Commit

Permalink
Fix the whitespace problem in hotkeys.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecotton committed Mar 15, 2021
1 parent b2e3b2c commit 2d85425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/core/hotkeys.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
dst=p
[/substitute]
[substitute]
src=
src=
dst=q
[/substitute]
[substitute]
Expand Down
2 changes: 2 additions & 0 deletions data/tools/generate_transliteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

def substitute(src, dst):
wml_template = "\t[substitute]\n\t\tsrc={src}\n\t\tdst={dst}\n\t[/substitute]"
src = src.strip()
dst = dst.strip()
return wml_template.replace("\t", " ").format(src=src, dst=dst)

if __name__ == '__main__':
Expand Down

0 comments on commit 2d85425

Please sign in to comment.