diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-10 15:07:52 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-11 18:37:15 +0700 |
| commit | d8b7a4e509a641ea2949646c5a3577bc848fea30 (patch) | |
| tree | 09f9bb2d3f3afe83a17fc2c1e85cba606da276b7 /script_example_test.go | |
| parent | cf6d0e5bb0baf5acbc70f8084d087e3a41b5452e (diff) | |
| download | awwan-d8b7a4e509a641ea2949646c5a3577bc848fea30.tar.xz | |
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".
Diffstat (limited to 'script_example_test.go')
| -rw-r--r-- | script_example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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; ` |
