projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29cb9a1
)
Privoxy-Regression-Test: Don't overlook directives in the first line
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 12 May 2016 08:43:12 +0000
(08:43 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Thu, 12 May 2016 08:43:12 +0000
(08:43 +0000)
... of the action file.
tools/privoxy-regression-test.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-regression-test.pl
b/tools/privoxy-regression-test.pl
index
c08cc76
..
cb43b23
100755
(executable)
--- 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
#
# A regression test "framework" for Privoxy. For documentation see:
# perldoc privoxy-regression-test.pl
#
-# $Id: privoxy-regression-test.pl,v 1.9
6 2016/05/12 08:42:57
fabiankeil Exp $
+# $Id: privoxy-regression-test.pl,v 1.9
7 2016/05/12 08:43:04
fabiankeil Exp $
#
# Wish list:
#
#
# Wish list:
#
@@
-370,8
+370,9
@@
sub tokenize ($) {
my ($token, $value) = (undef, undef);
my ($token, $value) = (undef, undef);
- # Remove leading and trailing white space.
- s@^\s*@@;
+ # Remove leading and trailing white space and a
+ # a leading <pre> which is part of the first line.
+ s@^\s*(<pre>)?@@;
s@\s*$@@;
# Reverse HTML-encoding
s@\s*$@@;
# Reverse HTML-encoding