#23375 [Asn->Csd]: Line feeds in Quickform-Checkbox-getFrozenHtml
| From: | mansion@php.net | Date: | Tue, 29 Apr 2003 11:14:28 +0000 |
| Subject: | #23375 [Asn->Csd]: Line feeds in Quickform-Checkbox-getFrozenHtml | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15699@lists.php.net to get a copy of this message | ||
ID: 23375
Updated by: mansion@php.net
Reported By: ths at 4bconsult dot de
-Status: Assigned
+Status: Closed
Bug Type: PEAR related
Operating System: WIN
PHP Version: 4.3.0
Assigned To: mansion
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-04-28 04:06:21] arnaud@php.net
Assigining to maintainer
------------------------------------------------------------------------
[2003-04-27 15:12:04] ths at 4bconsult dot de
I use the frozen HTML to create ascii formated confirmation emails with
the form data submited by the user. This works fine except unexpected
line feeds in the checkbox element (the radio element comes without
these line feeds).
The following patch remove these line feeds.
Index: checkbox.php
===================================================================
RCS file: /repository/pear/HTML_QuickForm/QuickForm/checkbox.php,v
retrieving revision 1.11
diff -u -r1.11 checkbox.php
--- checkbox.php 13 Apr 2003 19:24:55 -0000 1.11
+++ checkbox.php 27 Apr 2003 19:56:57 -0000
@@ -135,10 +135,10 @@
function getFrozenHtml()
{
if ($this->getChecked()) {
- $html = "<tt>[x]</tt>\n";
+ $html = '<tt>[x]</tt>';
$html .= '<input type="hidden"
name="'.$this->getName().'"
value="1" />';
} else {
- $html = "<tt>[ ]</tt>\n";
+ $html = '<tt>[ ]</tt>';
}
return $html;
} //end func getFrozenHtml
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23375&edit=1