Author: sdumitriu
Date: 2008-02-17 12:55:54 +0100 (Sun, 17 Feb 2008)
New Revision: 7771

Modified:
   xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
Log:
XWIKI-2126: In IE6, there's no space in the document footer between "last 
modified by Administrator" and "on "
Fixed.


Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 
2008-02-17 10:37:40 UTC (rev 7770)
+++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 
2008-02-17 11:55:54 UTC (rev 7771)
@@ -4633,7 +4633,7 @@
                 text =
                     userobj.getStringValue("first_name") + " "
                         + userobj.getStringValue("last_name");
-                if (text.trim().equals("")) {
+                if (StringUtils.isBlank(text)) {
                     text = userdoc.getName();
                 }
             } else {
@@ -4647,10 +4647,10 @@
             }
 
             if (link == false)
-                return text;
+                return text.trim();
             else {
                 return "<span class=\"wikilink\"><a href=\"" + 
userdoc.getURL("view", context)
-                    + "\">" + text + "</a></span>";
+                    + "\">" + text.trim() + "</a></span>";
             }
         } catch (Exception e) {
             e.printStackTrace();

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to