Bukkit/Bukkit — pull request #1030 by eueln (2014-02-11 20:38:53+00:00)
Title: [B] Fix unexpected ChatPaginator.wordWrap(String, int) output in some conditions Fixes BUKKIT-5408

### The Issue

ChatPaginator.wordWrap(String, int) gives unexpected output under a set of specific conditions.

The general conditions for this to occur (as of [line 95][0]) are as follows:
`lineLength` - `line.length()` - `word.length()` == 0

**A specific example**

Calling `wordWrap("preciselytwenty-five chars and more!", 25);` will result in the following (omitting color codes):

{
"preciselytwenty-fivechars", // Note the missing space
"and more!"
}

### PR Breakdown

The code causing this unexpected output, [lines 95-99][0], appear to be redundant: their functionality could be supplanted by the already-existing code in the additional "else if" and "else" statements later in this method.

This PR removes the aforementioned lines.

### Testing Results and Materials

Some example inputs that were tested, which should cover (nearly?) every edge case:

`wordWrap(String, 25)`

- [x] `"preciselytwenty-fivechars"` -- Covers exact line length
- [x] `"preciselytwenty-fivechars and more!"` -- Covers exact line length with additional text afterward
- [x] `"preciselytwenty-five chars"` -- The example given above
- [x] `"preciselytwenty-five chars and more!"` -- The example given above with additional text afterward
- [x] `"text-way-too-long-to-fit-in-one-line"` -- Not affected by this change
- [x] `"tinyline"` -- Not affected by this change

The inputs were also tested with sporadic addition of ChatColors.

### JIRA Ticket
https://bukkit.atlassian.net/browse/BUKKIT-5408

[0]: https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/util/ChatPaginator.java#L95-99