Hey, Metthew responded saying this can be due to a browser issue, Did you try that with several browsers?
Vince. On Wed, Apr 8, 2009 at 3:27 AM, Aniketto <[email protected]>wrote: > > @Vincent Gabriel > Thanks for help. > If it is a standard feature to trim empty lines and spaces, then why it > trims only one empty line. > Also I want to display the empty line as my client wants me to do so. > > Aniketto > > > > Bart McLeod wrote: > > > > oops, sorry for the misinformation. I should have asked if maybe he had > > added a stringTrim filter, but then he would have lost both > > newlines...so that leaves us wondering which browser is doing this. > > > > > > Matthew Weier O'Phinney schreef: > >> -- Bart McLeod <[email protected]> wrote > >> (on Tuesday, 07 April 2009, 03:47 PM +0200): > >> > >>> More specifically, this is caused by the default filter 'stringTrim'. > >>> You can > >>> set the element filters on the form to change filtering behavior. > >>> > >> > >> Actually... there are no default filters on any Zend_Form elements, much > >> less a default filter of StringTrim. > >> > >> Most likely this is a browser behavior. > >> > >> > >>> Vadim Gabriel schreef: > >>> > >>> Hey, > >>> > >>> I would assume this to be a standard feature. It trims empty spaces > >>> and > >>> lines. Why would you want to keep an extra empty line? For me for > >>> example > >>> this is the right way of doing this. And i don't see this as a bug. > >>> > >>> Vince. > >>> > >>> > >>> On Tue, Apr 7, 2009 at 12:23 PM, Aniketto > >>> <[email protected]> > >>> wrote: > >>> > >>> > >>> Hi all, > >>> I am using lot many textarea elements in my project. > >>> I am facing following problem. > >>> 1. Hit Enter 2 times(i.e. enter two empty lines). > >>> 2. Enter some text. > >>> 3. Now I save this data using a submit button. > >>> 4. After submitting when the page reloads one enter(empty line > ) > >>> in > >>> lost. > >>> > >>> The textarea field in zend framework is defined in such a way > >>> that one > >>> new > >>> line always gets lost. > >>> I think this is bug in zend framework. > >>> > >>> Can anybody suggest remedy to this? > >>> I am searching a generic solution which applied at one place > >>> will solve > >>> problem of all my textareas. > >>> Please help... > >>> > >>> Thanks, > >>> Aniketto > >>> -- > >>> View this message in context: http://www.nabble.com/ > >>> new-line-character-in-textarea-tp22925431p22925431.html > >>> Sent from the Zend Framework mailing list archive at > Nabble.com. > >>> > >>> > >>> > >>> > >>> > >>> -- > >>> Vincent Gabriel. > >>> Lead Developer, Senior Support. > >>> Zend Certified Engineer. > >>> Zend Framework Certified Engineer. > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/new-line-character-in-textarea-tp22925431p22940957.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer.
