Skip to content

Commit

Permalink
Make newlines act as whitespace also in the cmdline client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Jun 11, 2024
1 parent 7c7cfcf commit d3bd278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cadabra2.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Shell(InteractiveConsole):
if lastchar=='.' or lastchar==';' or lastchar==':':
if self.lhs!="":
line_stripped=line_stripped[:-1]
self.rhs += line_stripped
self.rhs += " "+line_stripped
rewrite = self.indent + self.lhs + ' = Ex(r"' + self.rhs+'")'
if self.operator==':=':
if rewrite[-1]!=';':
Expand Down

0 comments on commit d3bd278

Please sign in to comment.