click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r793195 - /incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
Date Sat, 11 Jul 2009 16:26:55 GMT
Author: sabob
Date: Sat Jul 11 16:26:55 2009
New Revision: 793195

URL: http://svn.apache.org/viewvc?rev=793195&view=rev
Log:
render a space after numbers e.g. Type1Control becomes Type 1 Control

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java?rev=793195&r1=793194&r2=793195&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java Sat Jul
11 16:26:55 2009
@@ -2280,7 +2280,15 @@
                     if (Character.isLowerCase(aChar)
                         && (Character.isUpperCase(nextChar)
                             || Character.isDigit(nextChar))) {
-                       buffer.append(" ");
+
+                        // Add space before digits or uppercase letters
+                        buffer.append(" ");
+
+                    } else if (Character.isDigit(aChar)
+                        && (!Character.isDigit(nextChar))) {
+
+                        // Add space after digits
+                        buffer.append(" ");
                     }
                 }
             }



Mime
View raw message