From 54272ac3b2d1695a9a49acc8fbc681657480f966 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 1 Jun 2007 09:25:28 +0000 Subject: [PATCH] Wenn der Benutzer Leerzeichen am Ende will, dann diese nicht entfernen. --- SL/LXDebug.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index d902e2ab2..684a1e7e3 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -160,8 +160,7 @@ sub dump_sql_result { my @sorted_names = sort keys %column_lengths; my $format = join '|', map { '%' . $column_lengths{$_} . 's' } @sorted_names; - $prefix =~ s|\s*$||; - $prefix .= ' ' if $prefix; + $prefix .= ' ' if $prefix; $self->message($level, $prefix . sprintf($format, @sorted_names)); $self->message($level, $prefix . join('+', map { '-' x $column_lengths{$_} } @sorted_names)); -- 2.20.1