$\(sourceLine <n>\) in Ktxt2 export

This commit is contained in:
2021-11-17 17:09:09 -07:00
parent 5d979aa6e6
commit 9b81dfb6f7

View File

@@ -81,6 +81,7 @@
((Block (objectWith source output))
(+= sourceText source)
(dictSet interp.variables "source" source)
(dictSet interp.variables "sourceLine" ->line (nth (source.split "\n") line))
(dictSet interp.variables "R" re_flex.R)
(+= outputText
// Don't run the expensive "evalKiss" if there is no interpolation in the block!