The word_wrap method was getting stuck on "words" that were too long to be
wrapped, such as the following:
This is a line ThisisalinethatwillneverbewrappedThisisalinethatwillneverbewrappedThisisalinethatwillneverbewrapped This is another line
Now, the method will properly skip these words and will not try to wrap
them.
We use the word_wrap method right now to reformat warning messages so
that they fit within a 72-character space. We'd like to use this for
error messages too, but we want the word_wrap method to be smart when
reformatting bulleted or numbered lists, and also to ignore code blocks.