incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias We├čendorf (JIRA) <adffaces-iss...@incubator.apache.org>
Subject [jira] Resolved: (ADFFACES-94) Add "wbr" to the white-space sensitive list
Date Wed, 26 Jul 2006 23:50:16 GMT
     [ http://issues.apache.org/jira/browse/ADFFACES-94?page=all ]

Matthias We├čendorf resolved ADFFACES-94.
----------------------------------------

    Resolution: Fixed

fixed in repackaging  brunch

Thanks Matt

> Add "wbr" to the white-space sensitive list
> -------------------------------------------
>
>                 Key: ADFFACES-94
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-94
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Matt Cooper
>            Priority: Minor
>
> The "wbr" element is intended to be a zero-width marker that indicates a line break may
occur if necessary.  However, if you use the following code in Apache MyFaces Trinidad, the
effective width is no longer zero-width:
> rw.startElement("wbr", null);
> rw.endElement("wbr");
> The fix is very simple, just add "wbr" to the list in org.apache.myfaces.adfinternal.io.IndentingResponseWriter._isWhiteSpaceSensitive(String
element) like this:
>   private boolean _isWhiteSpaceSensitive(String element)
>   {
>     // Assume that only HTML is a freak about whitespace.
>     if (!_isHtml)
>       return false;
>     String name = element.toLowerCase();
>     return ("img".equals(name)    ||
>             "a".equals(name)      ||
>             "br".equals(name)     ||
>             "span".equals(name)   ||
>             "div".equals(name)    ||
>             "area".equals(name)   ||
>             "u".equals(name)      ||
>             "i".equals(name)      ||
>             "b".equals(name)      ||
>             "em".equals(name)     ||
>             "strong".equals(name) ||
>             "map".equals(name)    ||
>             "label".equals(name)  ||
>             "font".equals(name)   ||
>             "table".equals(name)  ||
>             "tbody".equals(name)  ||
>             "tr".equals(name)     ||
>             "nobr".equals(name)   ||
>             "wbr".equals(name)    ||
>             "script".equals(name));
>   }

-- 
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

       

Mime
View raw message