Fix leading space.

This commit is contained in:
A Samuel Pottinger
2022-11-27 19:56:35 +00:00
parent 690d7c5961
commit c6f9b6f626
2 changed files with 26 additions and 27 deletions
@@ -589,9 +589,9 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
// Insert at start of method or after annoation
if (!hasVisibilityModifier) {
if (annoationPoint == null) {
insertBefore(possibleModifiers.getStart(), " public ");
insertBefore(possibleModifiers.getStart(), "public ");
} else {
insertAfter(annoationPoint.getStop(), " public ");
insertAfter(annoationPoint.getStop(), "public ");
}
}
+24 -25
View File
@@ -3,8 +3,6 @@ import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import processing.pdf.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
@@ -16,33 +14,34 @@ import java.io.IOException;
public class whitespace extends PApplet {
void setup() {
size(640, 360);
stroke(255);
noFill();
}
public void setup() {
/* size commented out by preprocessor */;
stroke(255);
noFill();
}
void drawBezier(int i) {
bezier(
mouseX - (i/2.0),
40+i,
410,
20,
440,
300,
240 - (i/16.0),
300 + (i/8.0)
);
}
public void drawBezier(int i) {
bezier(
mouseX - (i/2.0f),
40+i,
410,
20,
440,
300,
240 - (i/16.0f),
300 + (i/8.0f)
);
}
void draw() {
background(0);
for (int i = 0; i < 200; i += 20) {
drawBezier(i);
}
public void draw() {
background(0);
for (int i = 0; i < 200; i += 20) {
drawBezier(i);
}
}
public void settings() { size(640,360); }
public void settings() { size(640, 360); }
static public void main(String[] passedArgs) {
String[] appletArgs = new String[] { "whitespace" };