When using the web2py TEXTAREA html helper, I was caught out when 
displaying text that has an initial newline. This is incorrectly displayed 
when setting e.g. TEXTAREA(value="\n\nhello"), since the HTML 4 spec 
(http://www.w3.org/TR/WD-html40-970917/struct/text.html) says "A line break 
occurring immediately following a start tag must be ignored, as must a line 
break occurring immediately before an end tag.". There is some discussion 
of this WRT html 5 in a RoR issue: https://github.com/rails/rails/issues/393

Should web2py inject a newline into the html output between textarea tags 
in this case? It seems from the spec that it should also inject a trailing 
one, but I can't get this to work.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to