Subj : src/sbbs3/writemsg.cpp src/xpdev/str_list.c str_list.h To : Git commit to main/sbbs/master From : Rob Swindell Date : Mon Dec 05 2022 11:03 am 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 .