mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
when renaming fields, look for the non-space version instead
This commit is contained in:
parent
0fc662a919
commit
f945e60d6d
1 changed files with 3 additions and 3 deletions
|
@ -1823,9 +1823,9 @@ update facts set modified = :t where modelId = :mid"""
|
|||
# new styles
|
||||
"{{%s}}",
|
||||
"{{text:%s}}",
|
||||
"{{# %s}}",
|
||||
"{{^ %s}}",
|
||||
"{{/ %s}}")
|
||||
"{{#%s}}",
|
||||
"{{^%s}}",
|
||||
"{{/%s}}")
|
||||
for t in types:
|
||||
for fmt in ('qformat', 'aformat'):
|
||||
setattr(cm, fmt, getattr(cm, fmt).replace(t%field.name,
|
||||
|
|
Loading…
Reference in a new issue