You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Matt Cooper (JIRA)" <ad...@incubator.apache.org> on 2006/07/26 23:44:13 UTC

[jira] Created: (ADFFACES-94) Add "wbr" to the white-space sensitive list

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

        

[jira] Resolved: (ADFFACES-94) Add "wbr" to the white-space sensitive list

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ 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

       

[jira] Updated: (ADFFACES-94) Add "wbr" to the white-space sensitive list

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ 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.