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

Commit 6123e82

Browse files
committed
Avoid default for <area> @Correct attribute.
1 parent 8bc4876 commit 6123e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/clickableArea/clickable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def visit_ca_xml(self, node):
114114
for row in node["runestone_options"]["raw_source"]:
115115
row = row.replace("\n", "")
116116
row = row.replace(":click-correct:", "<area correct='yes'>")
117-
row = row.replace(":click-incorrect:", "<area>")
118-
row = row.replace(":endclick", "</area>")
117+
row = row.replace(":click-incorrect:", "<area correcct='no'>") # make explicit
118+
row = row.replace(":endclick:", "</area>") # eliminate final colon as well
119119
row = "<cline>" + row + "</cline>\n"
120120
res += row
121121
self.output.append(res)

0 commit comments

Comments
 (0)