Skip to content

Commit

Permalink
Fix printer OutOfBoundsException (#713)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalia Gavrilenko <[email protected]>
  • Loading branch information
natgavrilenko and Natalia Gavrilenko authored Aug 13, 2024
1 parent cdc0689 commit 618c3f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ private void appendEvent(Event event){
if(!(event instanceof Label)) {
result.append(" ");
}
result.append(padding, idSb.length(), padding.length());
if (idSb.length() < padding.length()) {
result.append(padding, idSb.length(), padding.length());
}
result.append(event).append("\n");
}
}
Expand Down

0 comments on commit 618c3f7

Please sign in to comment.