Skip to content

Commit

Permalink
add end of line detection for }} (DirectDefinition)
Browse files Browse the repository at this point in the history
  • Loading branch information
joebo authored Jan 10, 2022
1 parent 76486e2 commit fdd8024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jkernel/jkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def do_execute(self,
lastline = ''
if len(lines) > 0:
# Check last line (end of multiline statement)
if not lines[-1].strip() == ')':
if not lines[-1].strip() in [')','}}']:
lastline = lines[-1]
del lines[-1]
code = '\n'.join(lines)
Expand Down

0 comments on commit fdd8024

Please sign in to comment.