Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 4138eea

Browse files
committed
Fix: attribute is correct not data-correct
1 parent 3cbe8ff commit 4138eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/mchoice/multiplechoice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ def visit_mc_xml(self, node):
128128
node["template_end"] = XML_END
129129
node["template_option"] = XML_OPTION
130130
res = visit_mc_common(self, node)
131-
res = res.replace("data-correct", "correct")
132131
self.output.append(res)
133132

134133

135134
def depart_mc_xml(self, node):
136135
self.output.append(XML_START_END)
137136
res = depart_mc_common(self, node)
137+
res = res.replace("data-correct", "correct")
138138
self.output.append(res)
139139

140140

@@ -443,7 +443,7 @@ def visit_answer_list_item_xml(self, node):
443443
# Update dict for formatting the HTML.
444444
mc_node["runestone_options"]["alabel"] = label
445445
if label in mc_node["runestone_options"]["correct"]:
446-
mc_node["runestone_options"]["is_correct"] = "data-correct"
446+
mc_node["runestone_options"]["is_correct"] = "correct"
447447
self.output.append("<choice correct='yes'>")
448448
else:
449449
mc_node["runestone_options"]["is_correct"] = ""

0 commit comments

Comments
 (0)