Don't output trailing spaces in Printer
Also don't output trailing empty lines in TestGenerator
This commit is contained in:
@@ -71,14 +71,18 @@ public class Printer {
|
||||
if (withholdIndentOnce) {
|
||||
withholdIndentOnce = false;
|
||||
}
|
||||
else {
|
||||
append(indent);
|
||||
else if (objects.length > 0) {
|
||||
printIndent();
|
||||
}
|
||||
printWithNoIndent(objects);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public void printIndent() {
|
||||
append(indent);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Printer printWithNoIndent(Object... objects) {
|
||||
for (Object object : objects) {
|
||||
|
||||
Reference in New Issue
Block a user