Skip to content

Commit c25615d

Browse files
committed
fix rich text compiler trimming pos
1 parent e164f8e commit c25615d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/modularui/drawable/text/RichTextCompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public static String trimRight(String s) {
211211
for (; i >= 0; i--) {
212212
if (!Character.isWhitespace(s.charAt(i))) break;
213213
}
214-
if (i < s.length() - 1) s = s.substring(0, i);
214+
if (i < s.length() - 1) s = s.substring(0, i + 1);
215215
return s;
216216
}
217217

0 commit comments

Comments
 (0)