fixed error win unformatedtext class that resulted in println before each word.
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ public class TextOutput {
|
||||
|
||||
}
|
||||
else {
|
||||
if (word.length() >= columnWidth - currentLength) {
|
||||
if (word.length() >= columnWidth - currentLength && !(currentLength == 0)) {
|
||||
currentLength = 0;
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user