when renaming fields, look for the non-space version instead

This commit is contained in:
Damien Elmes 2011-01-19 05:17:39 +09:00
parent 0fc662a919
commit f945e60d6d

View file

@ -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,