Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 18, 2024
1 parent dc625e2 commit b6c2c59
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public static int indexOfWrap(final CharSequence text, final int width, final in
// handle case of width > text.
// the line ends before the max wrap pos or a new line char found
final int limit = Math.min(startPos + width, text.length() - 1);

for (int idx = startPos; idx < limit; idx++) {
if (BREAK_CHAR_SET.contains(text.charAt(idx))) {
return idx;
Expand All @@ -88,7 +87,6 @@ public static int indexOfWrap(final CharSequence text, final int width, final in
if (startPos + width >= text.length()) {
return text.length();
}

int pos;
// look for the last whitespace character before limit
for (pos = limit; pos >= startPos; --pos) {
Expand Down

0 comments on commit b6c2c59

Please sign in to comment.