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

Commit de0f1d3

Browse files
committed
Fix: Record source, line info for use in lp directive.
1 parent 6181b1b commit de0f1d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runestone/showeval/showeval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def run(self):
129129
is_dynamic = env.config.html_context.get("dynamic_pages", False)
130130
is_dynamic = True if is_dynamic == "True" else False
131131
step = False
132-
count = 0
133132
for line in self.content:
134133
if step == True:
135134
if line != "":
@@ -144,4 +143,7 @@ def run(self):
144143
self.options["preReqLines"] += line + "<br />\n"
145144
se_node = ShowEvalNode()
146145
se_node["runestone_options"] = self.options
146+
se_node["source"], se_node["line"] = self.state_machine.get_source_and_line(
147+
self.lineno
148+
)
147149
return [se_node]

0 commit comments

Comments
 (0)