Skip to content
Snippets Groups Projects
Commit 5710fda8 authored by deuce's avatar deuce
Browse files

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.
parent 88cb0b1f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment