(String s, String pref, int len, String newLineSep, boolean soft)
| 157 | } |
| 158 | |
| 159 | public static String wrapPrefixed(String s, String pref, int len, String newLineSep, boolean soft) { |
| 160 | return pref + wrapPrefixed(s, pref, len, newLineSep, soft, " ").replaceAll("\\Q\n\\E", "\n" + pref); |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Wrap words |