diff options
Diffstat (limited to 'lib/control.sh')
-rw-r--r-- | lib/control.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/control.sh b/lib/control.sh index 40a9b08..fd07bed 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -194,12 +194,12 @@ ob_set_substvar() # Trim leading and trailing whitespace from value. value="$(echo "${value}" | sed -n ' - H; # Store each input line in the hold space. - ${ # At the last line of input, … - g; # … restore the hold space into the pattern space, … - s/^[\n]*//; # … remove leading newline characters, … - s/[\n]*$//; # … remove trailing newline characters, and … - p; # … print the results. + H; # Store each input line in the hold space. + ${ # At the last line of input: + g; # restore the hold space into the pattern space, + s/^[\n]*//; # remove leading newline characters, + s/[\n]*$//; # remove trailing newline characters, and + p; # print the results. }; ')" |