From d8b7a4e509a641ea2949646c5a3577bc848fea30 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 10 Nov 2023 15:07:52 +0700 Subject: script: respect spaces when joining multi lines command If a multi lines command does not have spaces or have multiple spaces, join them as is. For example, a\ b should return the value as "ab", while a \ b should return "a b". --- script_example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script_example_test.go') diff --git a/script_example_test.go b/script_example_test.go index d53bf60..dbaa8be 100644 --- a/script_example_test.go +++ b/script_example_test.go @@ -18,8 +18,8 @@ key=value ` scriptContent = ` -multiline\ -command {{.Val "section::key"}};\ +multiline \ +command {{.Val "section::key"}}; \ end; ` -- cgit v1.3