We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e164f8e commit c25615dCopy full SHA for c25615d
1 file changed
src/main/java/com/cleanroommc/modularui/drawable/text/RichTextCompiler.java
@@ -211,7 +211,7 @@ public static String trimRight(String s) {
211
for (; i >= 0; i--) {
212
if (!Character.isWhitespace(s.charAt(i))) break;
213
}
214
- if (i < s.length() - 1) s = s.substring(0, i);
+ if (i < s.length() - 1) s = s.substring(0, i + 1);
215
return s;
216
217
0 commit comments