fixed error win unformatedtext class that resulted in println before each word.

This commit is contained in:
Leonardo Brandenberger
2021-11-05 18:25:20 +01:00
parent 7ac12a8ad5
commit a3b6388c9e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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();
}