summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-24 00:42:56 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-24 00:42:56 (EDT)
commitefcf5addea13a0c2febde8858f1f534dacfad42c (patch)
treedfd72495b6844fcc7375d8714d6f63ace3adf60b /lib
parentbf94a6e2ae92a58c806f94d5a47a43e0371566fb (diff)
Remove only newlines in substitution var values.
Diffstat (limited to 'lib')
-rw-r--r--lib/control.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 2e87248..196d952 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -159,8 +159,8 @@ ob_set_substvar()
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/^[ \t\n]*//; # … remove leading whitespace, …
- s/[ \t\n]*$//; # … remove trailing whitespace, and …
+ s/^[\n]*//; # … remove leading newline characters, …
+ s/[\n]*$//; # … remove trailing newline characters, and …
p; # … print the results.
};
')"