summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-06 18:12:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-06 18:12:13 +0100
commit1a6284d1c9d2dcbe73c814846d27a78678946ba6 (patch)
tree1f9518edf2a818a42a39e548e3d3e980c12d599e
parentdefbe34045aefb6e8c08cd494a80f89f8713c851 (diff)
icli: Support newlines in long_plugin_output
-rwxr-xr-xbin/icli4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/icli b/bin/icli
index a8bf272..4ea6716 100755
--- a/bin/icli
+++ b/bin/icli
@@ -463,11 +463,11 @@ sub display_x_verbose {
'Plugin Output',
break_str($x->{'plugin_output'}, 19),
);
- if (length($x->{'long_plugin_output'})) {
+ for my $line (split(qr{\\n}, $x->{'long_plugin_output'})) {
printf(
$format,
q{},
- break_str($x->{'long_plugin_output'}, 19),
+ break_str($line, 19),
);
}
printf(