From 1a6284d1c9d2dcbe73c814846d27a78678946ba6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 6 Jan 2011 18:12:13 +0100 Subject: icli: Support newlines in long_plugin_output --- bin/icli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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( -- cgit v1.2.3