Skip to content

Commit

Permalink
Removed last end line from MessageBuilderList#convertToString
Browse files Browse the repository at this point in the history
  • Loading branch information
Voinea-Radu committed Dec 8, 2024
1 parent 7ea30ed commit 15c00e9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ protected String convertToString() {
List<String> parsed = parse();
StringBuilder output = new StringBuilder();

for (String line : parsed) {
for (int i = 0; i < parsed.size() - 1; i++) {
output
.append(line)
.append(parsed.get(i))
.append('\n');
}

output.append(parsed.getLast());

return output.toString();
}

Expand Down

0 comments on commit 15c00e9

Please sign in to comment.