Overhaul the wordwrap() function.
The old code unwrapped from the old width and rewrapped to the new width in a single pass. While this was more efficient, it was very difficult to work on and understand the code. Now, wordwrap() is a two pass process. The first pass unwraps "paragraphs" (defined as being the text between two hard CRs) and the second pass wraps to the new width. This makes it simpler to understand and debug. This fixes some odd wrapping issues when quoting messages.
Please register or sign in to comment