Skip to content

Commit

Permalink
fix: none
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Nov 1, 2024
1 parent 57acd05 commit 2f629e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ape_console/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@


def _code_callback(ctx, param, value) -> list[str]:
if not value:
return value

# NOTE: newlines are escaped in code automatically, so we
# need to de-escape them. Any actually escaped newlines
# will still be escaped.
value = value.replace("\\n", "\n").replace("\\t", "\t").replace("\\b", "\b")

return value.splitlines()


Expand Down

0 comments on commit 2f629e1

Please sign in to comment.