From 0d7da47773513cabf6465af0a2c8d24204479046 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 25 Dec 2018 22:42:45 -0500 Subject: ob_set_substvar(): Shorten sed script comments --- (limited to 'lib') 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. }; ')" -- cgit v0.9.1