commit f52f8db7d5b6cbda63469a33daf5af4ef7f85be8
parent 6cf6c6647f700c016a6d97458934f39b182afd32
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Mon, 17 Jun 2024 23:48:27 +0200
fix(folding): missing CR
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils.c b/src/utils.c
@@ -106,7 +106,7 @@ char* fold(const char* str) {
// break lines after 75 chars
// split between any two characters by inserting a CRLF
// immediately followed by a white space character
- buf[bufl-2] = '\n';
+ buf[bufl-2] = '\r\n';
escch = ' ';
esc = true;
continue;