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

Commit b7553d4

Browse files
committed
Fix: attribute is indentation not indent
1 parent 15dfde1 commit b7553d4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

runestone/parsons/parsons.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,22 @@ def visit_parsons_xml(self, node):
7575
node["runestone_options"]["adaptive"] = "adaptive='yes'"
7676

7777
if not node["runestone_options"]["noindent"]:
78-
node["runestone_options"]["noindent"] = "indent='show'"
78+
node["runestone_options"]["noindent"] = "indentation='show'"
7979
else:
80-
node["runestone_options"]["noindent"] = "indent='hide'"
80+
node["runestone_options"]["noindent"] = "indentation='hide'"
8181

8282
if node["runestone_options"]["language"]:
83-
node["runestone_options"]["language"] = node["runestone_options"]["language"].replace(
84-
"data-", "")
83+
node["runestone_options"]["language"] = node["runestone_options"][
84+
"language"
85+
].replace("data-", "")
8586
else:
8687
node["runestone_options"]["language"] = "language='python'"
8788

88-
res = "<exercise label='{divid}' {numbered} {adaptive} {noindent} {language}>".format(
89-
**node["runestone_options"])
89+
res = (
90+
"<exercise label='{divid}' {numbered} {adaptive} {noindent} {language}>".format(
91+
**node["runestone_options"]
92+
)
93+
)
9094
res += "<statement>\n"
9195
self.output.append(res)
9296

0 commit comments

Comments
 (0)