Removing the <text> wrapper around choice text for radiogroup and checkboxgroup.

This commit is contained in:
Arjun Singh
2012-08-07 02:38:23 -04:00
parent 49b1678bf4
commit 19fa50a882

View File

@@ -204,7 +204,7 @@ def extract_choices(element):
raise Exception("[courseware.capa.inputtypes.extract_choices] \
Expected a <choice> tag; got %s instead"
% choice.tag)
choice_text = ''.join([etree.tostring(x) for x in choice])
choice_text = ''.join([x.text for x in choice])
choices.append((choice.get("name"), choice_text))