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] Updated: (ADFFACES-94) Add "wbr" to the white-space sensitive list
Date Fri, 16 Mar 2007 08:23:13 GMT

     [ https://issues.apache.org/jira/browse/ADFFACES-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias We├čendorf updated ADFFACES-94:
---------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> Add "wbr" to the white-space sensitive list
> -------------------------------------------
>
>                 Key: ADFFACES-94
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-94
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.0-incubating-core
>            Reporter: Matt Cooper
>            Priority: Minor
>             Fix For: 1.0.0-incubating-core
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message