mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Build with Java 16 for the time being
This commit is contained in:
1 parent
1c7d45bb81
commit
bb66246fb6
7 files changed
+13
-13
No files matched your search
@@ -122,9 +122,7 @@ public class Locales {
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats a description string, applying space-delimited line breaks after 35 characters.
|
||||
* <p>
|
||||
* If there is no space after 35 characters, the string will be split regardless at 45 characters.
|
||||
* Formats a description string, wrapping text on whitespace after 40 characters
|
||||
*
|
||||
* @param string The string to format
|
||||
* @return The line-break formatted string, or a String literal {@code "N/A"} if the input string is empty
|
||||
@@ -134,7 +132,7 @@ public class Locales {
|
||||
if (string.isBlank()) {
|
||||
return this.getRawLocale("item_no_description").orElse("N/A");
|
||||
}
|
||||
return WordUtils.wrap(string, 35);
|
||||
return WordUtils.wrap(string, 40, "\n", true);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
Reference in new issue
Block a user