Github user marko-bekhta commented on a diff in the pull request: https://github.com/apache/commons-lang/pull/179#discussion_r79809527 --- Diff: src/main/java/org/apache/commons/lang3/text/WordUtils.java --- @@ -172,6 +173,84 @@ public static String wrap(final String str, final int wrapLength) { * @return a line with newlines inserted, <code>null</code> if null input */ public static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords) { + return wrap(str, wrapLength, newLineStr, wrapLongWords, " "); + } + + /** + * <p>Wraps a single line of text, identifying words by <code>' '</code>.</p> + * + * <p>Leading spaces on a new line are stripped. + * Trailing spaces are not stripped.</p> + * + * <table border="1" summary="Wrap Results"> + * <tr> + * <th>input</th> + * <th>wrapLenght</th> + * <th>newLineString</th> + * <th>wrapLongWords</th> --- End diff -- @britter Hi, I've made the requested changes. Can you take a look?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---