From 256a81a17aa915c9f97440bf6487b068cfba5acf Mon Sep 17 00:00:00 2001 From: YummyOreo Date: Wed, 10 Jul 2024 12:43:18 -0500 Subject: fix(gui): add \r for windows (shouldn't effect unix bc they should ignore it) (#2253) --- ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/src') diff --git a/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx b/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx index a5697234..78928876 100644 --- a/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx +++ b/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx @@ -56,7 +56,7 @@ const RunBlock = ({ onPlay, id, code, isEditable }: RunBlockProps) => { setPty(pty); console.log(pty); - let val = !value.endsWith("\n") ? value + "\n" : value; + let val = !value.endsWith("\n") ? value + "\r\n" : value; await invoke("pty_write", { pid: pty, data: val }); } }; -- cgit v1.3.1