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

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, December 05, 2022 11:03:04
    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