From 4fd08341068a6d22ec669934d35c018a8b0811f4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 12 May 2016 08:43:12 +0000 Subject: [PATCH] Privoxy-Regression-Test: Don't overlook directives in the first line ... of the action file. --- tools/privoxy-regression-test.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index c08cc76a..cb43b230 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -7,7 +7,7 @@ # A regression test "framework" for Privoxy. For documentation see: # perldoc privoxy-regression-test.pl # -# $Id: privoxy-regression-test.pl,v 1.96 2016/05/12 08:42:57 fabiankeil Exp $ +# $Id: privoxy-regression-test.pl,v 1.97 2016/05/12 08:43:04 fabiankeil Exp $ # # Wish list: # @@ -370,8 +370,9 @@ sub tokenize ($) { my ($token, $value) = (undef, undef); - # Remove leading and trailing white space. - s@^\s*@@; + # Remove leading and trailing white space and a + # a leading
 which is part of the first line.
+    s@^\s*(
)?@@;
     s@\s*$@@;
 
     # Reverse HTML-encoding
-- 
2.39.2