[ 
http://issues.apache.org/jira/browse/TOMAHAWK-214?page=comments#action_12417857 
] 

Bill Schneider commented on TOMAHAWK-214:
-----------------------------------------

I did some more research on this, and it looks like there may already be 
support there for some \n to <br> conversion.

shared/renderkit/html/util/HTMLEncoder seems to provide support when escaping 
other HTML chars.

shared class HtmlResponseWriterImpl, method writeText(char cbuf[], int off, int 
len) appears to set flags to enable \n to <br> conversion.

BUT writeText(String, String), the form which is called from 
HtmlOutputTextRenderer, does *not* set these flags.

So it would seem straightforward to set the 'false' flags to 'true.'  including 
the same 'if (isTextarea())' condition.




> t:outputText attribute \n -> <br/>
> ----------------------------------
>
>          Key: TOMAHAWK-214
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-214
>      Project: MyFaces Tomahawk
>         Type: New Feature

>     Reporter: Alexander Panzhin
>     Priority: Minor

>
> A boolean attribute, when set would convert '\n' to '<br/>'.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to