diff --git a/webtools/tinderbox/showlog.cgi b/webtools/tinderbox/showlog.cgi index 47d69303ce87..3ed48f760fce 100755 --- a/webtools/tinderbox/showlog.cgi +++ b/webtools/tinderbox/showlog.cgi @@ -317,10 +317,7 @@ sub output_log_line { } if ($has_error) { - if ($last_was_error) { - $logline .= " "; - } - else { + unless ($last_was_error) { $logline .= ""; $next_err++; $logline .= "NEXT "; @@ -330,11 +327,10 @@ sub output_log_line { $last_was_error = 1; } elsif ($has_warning) { - $logline .= " "; - $logline .= "$line"; + $logline = "$line"; } else { - $logline .= " $line"; + $logline = $line; $last_was_error = 0; }