Re: Quickform: textarea display still
| From: | Dan Wilson | Date: | Fri, 28 Feb 2003 15:59:32 +0000 |
| Subject: | Re: Quickform: textarea display still | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4004@lists.php.net to get a copy of this message | ||
Bertrand,
I apologize... I didn't mean to come off demanding. After reading my email
again, I realized that it very much sounded like that.
I was frustrated at trying to figure out what it was that was causing this
issue and let's just say that I am know fairly familiar with the code ;) It
took me a while to find it.
Anyway... I am sorry about that. I do appreciate what you've done with
QuickForm... it has made my applications much easier to build.
I just don't understand the reasoning for replacing all spaces with the nbsp..
I think a majority of people would like text to wrap automatically within any
table or window in which it is output. Doing it like the current code pushes
it to the write and often results in horizontal scrolling.
Thanks and sorry,
-Dan
Quoting Bertrand Mansion <bmansion@mamasam.com>:
> <dan@acucore.com> wrote :
>
> > What is the purpose of the str_replace in the following line of code:
> >
> > $html = nl2br(str_replace(' ', ' ', $value))."\n";
> >
> > This is from HTML/QuickForm/textarea.php, line 228... within the
> getFrozenHTML
> >
> > It's the same thing as creating a nowrap. I want to be able to wrap that
> text
> > when displaying it, and this code doesn't allow that.
> >
> > For right now, I've commented it out, but I don't want to have to do that
> each
> > time I upgrade HTML_QuickForm.
>
> Damn, you should really learn how to be polite: say 'hi', say 'please', say
> 'thank you'.
>
> Bertrand Mansion
> Mamasam
>
>