Build with Java 16 for the time being

This commit is contained in:
William committed 2022-08-24 15:22:57 +01:00
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")