removed trailing whitespace

This commit is contained in:
Yang Tse
2010-02-14 19:40:18 +00:00
parent 2268657272
commit a07bc79117
141 changed files with 673 additions and 669 deletions

View File

@@ -76,7 +76,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
$tag = $1;
if($tag =~ /^<!--/) {
# this is a comment tag, ignore it
# this is a comment tag, ignore it
}
else {
if(!$form &&
@@ -90,13 +90,13 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
}
$action= $tag;
$action=~ s/.*action *= *(\'|\"|)([^ \"\'>]*).*/$2/gi;
$method=uc($method);
$enctype=$tag;
if ($enctype =~ /enctype *=/) {
$enctype=~ s/.*enctype *= *(\'|\"|)([^ \"\'>]*).*/$2/gi;
if($enctype eq "multipart/form-data") {
$enctype="multipart form upload [use -F]"
}
@@ -132,7 +132,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
elsif($form &&
($tag =~ /^< *(input|select)/i)) {
$mtag = $1;
($name, $value)=namevalue($tag);
if($mtag =~ /select/i) {
@@ -154,7 +154,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
}
elsif($name eq "") {
# let's read the value parameter
print "Button: \"$value\" ($type)\n";
push @alts, "$value";
}
@@ -173,7 +173,7 @@ while($in =~ /[^<]*(<[^>]+>)/g ) {
elsif($form &&
($tag =~ /^< *textarea/i)) {
my ($name, $value)=namevalue($tag);
print "Textarea: NAME=\"$name\"\n";
}
elsif($select) {