Skip to content

Commit de4a22e

Browse files
committed
fix "less less" typo (processing#1928)
1 parent 00adca2 commit de4a22e

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

app/src/processing/app/Sketch.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

core/todo.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
X basic getShape(ch) implementation for font glyph shapes
33
X change QUAD_BEZIER_VERTEX to QUADRATIC_VERTEX to match the API call
44
X because this lives inside PConstants
5+
X Error in IntList and FloatList insert()
6+
X https://github.com/processing/processing/issues/1929
7+
58

69
_ finish PFont.getShape() implementation
710
_ needs to have a way to set width/height properly

todo.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
0220 pde
2+
X change location of the manager download
3+
X fix "less less" typo
4+
X https://github.com/processing/processing/issues/1928
25

36

47
high

0 commit comments

Comments
 (0)