#23375 [Opn->Asn]: Line feeds in Quickform-Checkbox-getFrozenHtml
| From: | arnaud@php.net | Date: | Mon, 28 Apr 2003 09:06:21 +0000 |
| Subject: | #23375 [Opn->Asn]: Line feeds in Quickform-Checkbox-getFrozenHtml | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15672@lists.php.net to get a copy of this message | ||
ID: 23375
Updated by: arnaud@php.net
Reported By: ths at 4bconsult dot de
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: WIN
PHP Version: 4.3.0
-Assigned To:
+Assigned To: mansion
New Comment:
Assigining to maintainer
Previous Comments:
------------------------------------------------------------------------
[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