From cee9b2efd9d1f2e4bfb8dbd0762618b7193a00fd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 31 Jan 2013 14:07:14 +0900 Subject: [PATCH] strip tags before including on card (#505) --- anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/collection.py b/anki/collection.py index e0c1497e4..0da7b6a24 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -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: