# Enhancement by ESR, 14 Nov 2003
#
# Verify and merge Lucien Saviot's patch to produce XHTML from XHTML input.
+# Also his change to handle spurious lin e breaks produced by Dave Raggett's
+# tidy(1) utility.
import sys, os, getopt, string, re, urllib, commands
# All attempts failed
sys.stderr.write("imgsizer: couldn't analyze %s\n" % src)
-source = re.compile('SRC="?([^" \t\n]*)"?', re.I)
+source = re.compile('SRC\s*=\s*"?([^" \t\n]*)"?', re.I)
awidth = re.compile(r' *WIDTH\s*=\s*"?[0-9]*"?', re.I)
aheight = re.compile(r' *HEIGHT\s*=\s*"?[0-9]*"?', re.I)
pwidth = re.compile(r'WIDTH\s*=\s*"?[0-9]*%"?', re.I)