|
I saw inside the firebug. The value of the field ("texto") is : " example line 1 \r\n line 2 without enter \n line 3 with enter" So I conclude that the "wrapped" lines return with "\r\n" mark. No problem but my original function splits by "\n" mark: lines = texto.split(/\n/).size if texto !=nil But Oooooppppssss the result is again 2. Split function only work with "\n" mark alone. Do not when then "\n" mark have a folk mark "\r" by it side ? I am preparing to kill "\r" marks.....(only inside the "texto" field...) Another suggestion ? Colin Law escribió: 2009/7/31 Fabian <[email protected]>:Colin: Nothing for this field in the development.log Do I set anythig special to log the template ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [Rails] partials... Craig White
- [Rails] Re: partials... Colin Law
- [Rails] Re: partials... Craig White
- [Rails] Counti lines in Textarea / Wrap Hard not Work... Fabian
- [Rails] Re: Counti lines in Textarea / Wrap Hard ... Colin Law
- [Rails] Re: Counti lines in Textarea / Wrap H... Fabian
- [Rails] Re: Counti lines in Textarea / W... Colin Law
- [Rails] Re: Counti lines in Textarea... Fabian
- [Rails] Re: Counti lines in Text... Colin Law
- [Rails] Re: Counti lines in Text... Fabian

