/** * Reformats the given string to a fixed width by inserting * carriage returns and trimming unnecessary whitespace. * * @param str the string to format * @param width the fixed width (in characters) */ public static String fixedWidth(String str, int width) { String[] lines = split(str, "\n"); return fixedWidth(lines, width); }
/** * Reformats the given string to a fixed width by inserting * carriage returns and trimming unnecessary whitespace. * * @param str the string to format * @param width the fixed width (in characters) */ public static String fixedWidth(String str, int width) { String[] lines = split(str, "\n"); return fixedWidth(lines, width); }
/** * Reformats the given string to a fixed width by inserting * carriage returns and trimming unnecessary whitespace. * * @param str the string to format * @param width the fixed width (in characters) */ public static String fixedWidth(String str, int width) { String[] lines = split(str, "\n"); return fixedWidth(lines, width); }
return StringUtil.fixedWidth(text.split("\n"), EMAIL_LINE_WIDTH_MAX);
return StringUtil.fixedWidth(text.split("\n"), EMAIL_LINE_WIDTH_MAX);
return StringUtil.fixedWidth(text.split("\n"), EMAIL_LINE_WIDTH_MAX);