Comment 9 for bug 1036

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Ok, seems like finally, there is a bug with firefox that introduces extra newlines inside textareas depending on the data it gets to fill that textarea.

You can see the bug report at: https://bugzilla.mozilla.org/show_bug.cgi?id=299009

I think I have a fix for all possible situations with Firefox but it will fail when Firefox is fixed or if the users use another browser that does not have the bug, the problem we will have in that case is that we will lose newlines if they are at the end of the text. For instance:

"Foo
"

Will be submitted as "Foo", it's not a big issue as we don't have too many strings in that situation and our current translation validation code will reject them.

I leave this bug open until I develop a final fix that will prevent this kind of errors so we will handle automatically trailing and leading newlines so the user does not needs to care about them and we will not care at all if the browser is buggy or not. It will take sometime as the change is not trivial but I hope it will be ready next week. In the mean time, the 'fast but not 100% correct fix' should land tomorrow.