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

Commit 18bc3fb

Browse files
committed
Fix: use new syntax for instructor only reveal
1 parent 2ab80be commit 18bc3fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runestone/reveal/reveal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def depart_reveal_node(self, node):
7373

7474
# Templates to be formatted by node options
7575
DYNAMIC_PREFIX = """
76-
{{ if is_instructor: }}
76+
{% if is_instructor: %}
7777
"""
7878
TEMPLATE_START = """
7979
<div data-component="reveal" id="%(divid)s" %(modal)s %(modaltitle)s %(showtitle)s %(hidetitle)s %(instructoronly)s style="visibility: hidden;">
@@ -82,7 +82,7 @@ def depart_reveal_node(self, node):
8282
</div>
8383
"""
8484
DYNAMIC_SUFFIX = """
85-
{{ pass }}
85+
{% endif %}
8686
"""
8787

8888

runestone/reveal/test/test_reveal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ def test_r4(selenium_utils_get):
5151
su = selenium_utils_get
5252
su.wait_until_ready("question1")
5353
t1 = su.driver.find_element_by_id("reveal")
54-
assert "{{ if is_instructor: }}" in t1.get_attribute("innerHTML")
54+
assert "{% if is_instructor: %}" in t1.get_attribute("innerHTML")

0 commit comments

Comments
 (0)