|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-28 04:06 UTC] arnaud@php.net
[2003-04-29 06:14 UTC] mansion@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
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