Add the $AddBlankLines system variable.

This commit is contained in:
Dianne Skoll
2022-10-10 22:49:28 -04:00
parent f9d968cf68
commit 07fd975935
8 changed files with 64 additions and 9 deletions
+5 -2
View File
@@ -190,8 +190,11 @@ int DoSubst(ParsePtr p, DynamicBuffer *dbuf, Trigger *t, TimeTrig *tt, int jul,
}
if (c == '\n') continue;
if (!c) {
if (mode != CAL_MODE && mode != ADVANCE_MODE &&
t->typ != RUN_TYPE && !MsgCommand) {
if (AddBlankLines &&
mode != CAL_MODE &&
mode != ADVANCE_MODE &&
t->typ != RUN_TYPE &&
!MsgCommand) {
if (DBufPutc(dbuf, '\n') != OK) return E_NO_MEM;
}
break;