Convert \n from continuation lines in INCLUDECMD to ' ' to make it a little friendlier.

This commit is contained in:
Dianne Skoll
2021-09-05 11:28:54 -04:00
parent 08f1bea6ce
commit 3c9b5b786e
+4
View File
@@ -575,6 +575,10 @@ int DoIncludeCmd(ParsePtr p)
continue;
}
seen_nonspace = 1;
/* Convert \n to ' ' to better handle line continuation */
if (ch == '\n') {
ch = ' ';
}
append_buf[0] = (char) ch;
if (DBufPuts(&buf, append_buf) != OK) {
DBufFree(&buf);