From 19fa50a882abd0d0a4834d66550572edb379499e Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Tue, 7 Aug 2012 02:38:23 -0400 Subject: [PATCH] Removing the wrapper around choice text for radiogroup and checkboxgroup. --- common/lib/capa/capa/inputtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 583d29b82e..5092e5c378 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -204,7 +204,7 @@ def extract_choices(element): raise Exception("[courseware.capa.inputtypes.extract_choices] \ Expected a 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))