Skip to content

Commit

Permalink
Also add a new line at the end of the execution of the pdl program in…
Browse files Browse the repository at this point in the history
… streaming mode
  • Loading branch information
mandel committed Sep 9, 2024
1 parent c512239 commit 4c96f49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdl/pdl_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def generate(
if state.yield_background:
print("\n----------------")
print(stringify(result))
else:
print()
with open(log_file, "w", encoding="utf-8") as log_fp:
for line in state.log:
log_fp.write(line)
Expand Down

0 comments on commit 4c96f49

Please sign in to comment.