strip tags before including on card (#505)

This commit is contained in:
Damien Elmes 2013-01-31 14:07:14 +09:00
parent c67c932c64
commit cee9b2efd9

View file

@ -481,7 +481,7 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
model = self.models.get(data[2])
for (name, (idx, conf)) in self.models.fieldMap(model).items():
fields[name] = flist[idx]
fields['Tags'] = data[5]
fields['Tags'] = data[5].strip()
fields['Type'] = model['name']
fields['Deck'] = self.decks.name(data[3])
if model['type'] == MODEL_STD: