Skip to content

Commit

Permalink
only reset format after a standalone line break
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Feb 14, 2025
1 parent e4d2d81 commit 220b58b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public void reset(FontRenderer fr, int maxWidth) {

private void compile(List<Object> raw) {
for (Object o : raw) {
this.formatting.reset();
if (o instanceof ITextLine line) {
newLine();
lines.add(line);
Expand All @@ -69,6 +68,7 @@ private void compile(List<Object> raw) {
}
if (key == IKey.LINE_FEED) {
newLine();
this.formatting.reset();
continue;
}
text = key.getFormatted();
Expand Down

0 comments on commit 220b58b

Please sign in to comment.