@@ -70,7 +70,7 @@ public class Sketch {
7070 */
7171 private int codeCount ;
7272 private SketchCode [] code ;
73-
73+
7474 /** Moved out of Editor and into here for cleaner access. */
7575 private boolean untitled ;
7676
@@ -1420,7 +1420,7 @@ static public String checkName(String origName) {
14201420 String msg =
14211421 "The sketch name had to be modified. Sketch names can only consist\n " +
14221422 "of ASCII characters and numbers (but cannot start with a number).\n " +
1423- "They should also be less less than 64 characters long." ;
1423+ "They should also be less than 64 characters long." ;
14241424 System .out .println (msg );
14251425 }
14261426 return newName ;
@@ -1441,8 +1441,8 @@ static public boolean isSanitaryName(String name) {
14411441 static final boolean asciiLetter (char c ) {
14421442 return (c >= 'a' && c <= 'z' ) || (c >= 'A' && c <= 'Z' );
14431443 }
1444-
1445-
1444+
1445+
14461446 /**
14471447 * Produce a sanitized name that fits our standards for likely to work.
14481448 * <p/>
@@ -1457,14 +1457,14 @@ static final boolean asciiLetter(char c) {
14571457 * underscores. Also disallows starting the sketch name with a digit
14581458 * or underscore.
14591459 * <p/>
1460- * In Processing 2.0, sketches can no longer begin with an underscore,
1460+ * In Processing 2.0, sketches can no longer begin with an underscore,
14611461 * because these aren't valid class names on Android.
14621462 */
14631463 static public String sanitizeName (String origName ) {
14641464 char orig [] = origName .toCharArray ();
14651465 StringBuffer buffer = new StringBuffer ();
14661466
1467- // Can't lead with a digit (or anything besides a letter), so prefix with
1467+ // Can't lead with a digit (or anything besides a letter), so prefix with
14681468 // "sketch_". In 1.x this prefixed with an underscore, but those get shaved
14691469 // off later, since you can't start a sketch name with underscore anymore.
14701470 if (!asciiLetter (orig [0 ])) {
@@ -1476,8 +1476,8 @@ static public String sanitizeName(String origName) {
14761476 buffer .append (c );
14771477
14781478 } else {
1479- // Tempting to only add if prev char is not underscore, but that
1480- // might be more confusing if lots of chars are converted and the
1479+ // Tempting to only add if prev char is not underscore, but that
1480+ // might be more confusing if lots of chars are converted and the
14811481 // result is a very short string thats nothing like the original.
14821482 buffer .append ('_' );
14831483 }
0 commit comments