Closed ncalexan closed 6 years ago
Right, now the REPL glues together input lines with spaces, like a + " " + b. The problem is that when a contains a line comment, like
a + " " + b
a
.q [:find ?e ?a ?v ; but not ?tx
then with the followup line
.q [:find ?e ?a ?v ; but not ?tx :where [?e ?a ?v]]
the glued line appears like
Such lines will never be valid EDN input.
The solution is simple: glue with a + "\n" + b (which will also preserve newlines in multi-line strings).
a + "\n" + b
Addressed by https://github.com/mozilla/mentat/commit/8e2d79577824f972ae13cf7ffb1c922e768a3340.
Right, now the REPL glues together input lines with spaces, like
a + " " + b
. The problem is that whena
contains a line comment, likethen with the followup line
the glued line appears like
Such lines will never be valid EDN input.
The solution is simple: glue with
a + "\n" + b
(which will also preserve newlines in multi-line strings).