summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authortimeless%mac.com <>2001-10-10 13:52:09 +0200
committertimeless%mac.com <>2001-10-10 13:52:09 +0200
commit5d5f0e06881ac5ed2711a3bb725f41491bcefaa7 (patch)
tree70f86c456c4f176dbbbfcb4489e8c7f232690764 /CGI.pl
parent1178d9a0fd29721721a3abf795d2d2218165b784 (diff)
downloadbugzilla-5d5f0e06881ac5ed2711a3bb725f41491bcefaa7.tar.gz
bugzilla-5d5f0e06881ac5ed2711a3bb725f41491bcefaa7.tar.xz
Bugzilla Bug 97185 make_select should add a newline after each option
patch by kiko. r=zach, gerv
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/CGI.pl b/CGI.pl
index ee6dbb4c7..2cfe767eb 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -557,7 +557,7 @@ sub make_selection_widget {
} elsif ($type eq "RADIO") {
$popup .= "<INPUT NAME=$groupname type=radio VALUE=\"$item\" check>$displaytext<br>";
} else {
- $popup .= "<OPTION SELECTED VALUE=\"$item\">$displaytext";
+ $popup .= "<OPTION SELECTED VALUE=\"$item\">$displaytext\n";
}
$found = 1;
} else {
@@ -578,7 +578,7 @@ sub make_selection_widget {
} elsif ($type eq "RADIO") {
$popup .= "<INPUT NAME=$groupname type=radio checked>$default";
} else {
- $popup .= "<OPTION SELECTED>$default";
+ $popup .= "<OPTION SELECTED>$default\n";
}
}
if ($type eq "LIST") {
@@ -605,10 +605,10 @@ sub make_options {
}
$last = $item;
if ($isregexp ? $item =~ $default : $default eq $item) {
- $popup .= "<OPTION SELECTED VALUE=\"$item\">$item";
+ $popup .= "<OPTION SELECTED VALUE=\"$item\">$item\n";
$found = 1;
} else {
- $popup .= "<OPTION VALUE=\"$item\">$item";
+ $popup .= "<OPTION VALUE=\"$item\">$item\n";
}
}
}
@@ -631,7 +631,7 @@ sub make_options {
exit 0;
} else {
- $popup .= "<OPTION SELECTED>$default";
+ $popup .= "<OPTION SELECTED>$default\n";
}
}
return $popup;