-- 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. > > > > > -- Matthew Weier O'Phinney Software Architect | [email protected] Zend Framework | http://framework.zend.com/
