• src/sbbs3/writemsg.cpp src/xpdev/str_list.c str_list.h

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Dec 5 11:03:04 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/23c6f1df39a4168ac34d8e9a
    Modified Files:
    src/sbbs3/writemsg.cpp src/xpdev/str_list.c str_list.h
    Log Message:
    Include blank lines in messages edited with internal editor

    Needed a version of strListSplit() that doesn't treat consecutive delimiters (e.g. "\r\n\r\n") as a single delimiter: so introducing strListDivide(). Like strListSplit(), strListDivide() modifies the input string (replacing first occurrences of delimiter with NUL).

    Since we don't want "\r\n" to be counted as 2 lines, we need to just split/divide on '\n' and then truncate any line endings (i.e. '\r') chars off the ends of the split strings.

    Reported by phigan in #synchronet
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net