src/sbbs3 wordwrap.c 1.26 1.27
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv23854
Modified Files:
wordwrap.c
Log Message:
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net