From df2957e0e1ce85b69b1480d64d40ec13ca798e3c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 11 Oct 2006 14:03:17 +0000 Subject: [PATCH] Changed img-reorder regex to only move width attributes if they are following at least one whitespace. Fixes BR 1328455. --- default.filter | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/default.filter b/default.filter index 928d092f..0a9fd708 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.27 2006/10/08 17:00:51 fabiankeil Exp $ +# $Id: default.filter,v 1.28 2006/10/11 13:31:13 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -208,7 +208,7 @@ FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* s|]*) src\s*=\s*(['"])([^>\\\2]+)\2|]*) src\s*=\s*([^'">\\\s]+)|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s*width\s*=\s*(["']?)(\d+?)\4|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*(["']?)(\d+?)\4|