portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r785360 - in /portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document: impl/NodeImpl.java psml/AbstractNode.java
Date Tue, 16 Jun 2009 19:46:12 GMT
Author: rwatler
Date: Tue Jun 16 19:46:12 2009
New Revision: 785360

URL: http://svn.apache.org/viewvc?rev=785360&view=rev
Log:
correct default title computation for folders with a '_' prefix

Modified:
    portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
    portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/psml/AbstractNode.java

Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java?rev=785360&r1=785359&r2=785360&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
(original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
Tue Jun 16 19:46:12 2009
@@ -145,6 +145,7 @@
             // use space as word separator
             title = title.replace('_', ' ');
             title = title.replace('-', ' ');
+            title = title.trim();
             // use title case for title words
             int wordIndex = -1;
             do

Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/psml/AbstractNode.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/psml/AbstractNode.java?rev=785360&r1=785359&r2=785360&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/psml/AbstractNode.java
(original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/page-manager/src/java/org/apache/jetspeed/page/document/psml/AbstractNode.java
Tue Jun 16 19:46:12 2009
@@ -258,6 +258,7 @@
             }
             titleName = titleName.replace('_', ' ');
             titleName = titleName.replace('-', ' ');
+            titleName = titleName.trim();
             int wordIndex = -1;
             do
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message