You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/06/23 07:25:48 UTC

DO NOT REPLY [Bug 9939] - tag trims out Leading/ Trailing spaces...

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9939>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9939

<bean:write> tag trims out Leading/ Trailing spaces...

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From craig.mcclanahan@sun.com  2002-06-23 05:25 -------
Actually, <bean:write> does *not* filter out any leading or trailing spaces --
it renders *exactly* the contents of the data value you reference returns (once
converted to a String).  However, if you are outputting HTML text, the browser
will typically compress multiple spaces into a single one, because that is the
way HTML is defined to operate.

If you want spaces to be significant, I would recommend that you nest the
<bean:write> tag inside something like a <pre> ... </pre> pair, which tells the
browser to treat these spaces as significant.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>