From 64fc32147c5167bda1e0b0995abff6775435a81c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 30 Dec 2009 11:44:14 +0000 Subject: [PATCH] Refactor get_line_end() so it doesn't shadow $line_end. --- tools/privoxy-log-parser.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 768315ed..4da8a81a 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.211 2009/12/30 10:17:28 fk Exp $ +# $Id: privoxy-log-parser.pl,v 1.63 2009/12/30 11:14:30 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -457,12 +457,7 @@ sub print_outro () { } sub get_line_end () { - - my $line_end = "\n"; - - $line_end = '
' . $line_end if $html_output_mode; - - return $line_end; + return cli_option_is_set('html-output') ? "
\n" : "\n"; } sub get_colour_html_markup ($) { -- 2.39.2