mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
JSON can handle newlines (the literal newlines will be escaped to "\n" by the JSON writer.)
This commit is contained in:
@@ -644,10 +644,11 @@ int DoSubst(ParsePtr p, DynamicBuffer *dbuf, Trigger *t, TimeTrig *tt, int jul,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '_':
|
case '_':
|
||||||
if (mode != CAL_MODE && mode != ADVANCE_MODE && !MsgCommand)
|
if (PsCal == PSCAL_LEVEL2 || PsCal == PSCAL_LEVEL3 || (mode != CAL_MODE && mode != ADVANCE_MODE && !MsgCommand)) {
|
||||||
sprintf(s, "%s", NL);
|
sprintf(s, "%s", NL);
|
||||||
else
|
} else {
|
||||||
sprintf(s, " ");
|
sprintf(s, " ");
|
||||||
|
}
|
||||||
SHIP_OUT(s);
|
SHIP_OUT(s);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user