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 "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org> on 2006/07/26 23:50:16 UTC
[jira] Resolved: (ADFFACES-94) Add "wbr" to the white-space
sensitive list
[ 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