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

Commit 96274a1

Browse files
committed
Do not indent if natural or math language
1 parent 81dd0e5 commit 96274a1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

runestone/parsons/js/parsonsBlock.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@ export default class ParsonsBlock {
8585
$(lines[i].view).removeClass(
8686
"indent1 indent2 indent3 indent4"
8787
);
88-
$(lines[i].view).addClass(
89-
"indent" + (lines[i].indent - line.indent)
90-
);
88+
// todo: if language is natural or math then don't do this
89+
if (this.options.language !== "natural" && this.options.language !== "math") {
90+
$(lines[i].view).addClass(
91+
"indent" + (lines[i].indent - line.indent)
92+
);
93+
}
9194
}
9295
}
9396
}

0 commit comments

Comments
 (0)