Hi Dianne, * Dianne Skoll <[email protected]> [2020-01-14 18:22]:
On 2020-01-14 17:22, Jochen Sprickerhof wrote:- Add an element with the complete body, i.e. %\"bar%\" Foo today, or maybe two elements one with the calendar mode entry (bar) and one with the rest (Foo today)Hmm, that's tricky. I have to think about that.Which part would be tricky? The complete body or splitting it into two elements?Either, really... it's not insurmountable, but just tedious. :)
I implemented this in the attached patch. We can make it optional, if you prefer, but I don't think it's needed. Would be great to see it applied.
Cheers Jochen
From ce70eeb18cf2f02a0fca4f058f772a406d619d31 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof <[email protected]> Date: Mon, 27 Jan 2020 18:51:44 +0100 Subject: [PATCH] Ignore %" in -ppp mode When using the pure JSON format mode (-ppp) users are expected to extract short form calendar entry between the %" themself. --- src/dosubst.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dosubst.c b/src/dosubst.c index 84674bd..dbc138c 100644 --- a/src/dosubst.c +++ b/src/dosubst.c @@ -656,9 +656,11 @@ int DoSubst(ParsePtr p, DynamicBuffer *dbuf, Trigger *t, TimeTrig *tt, int jul, break; case '"': - if (DBufPutc(dbuf, QUOTE_MARKER) != OK) return E_NO_MEM; - has_quote = 1; - break; + if (PsCal != PSCAL_LEVEL3) { + if (DBufPutc(dbuf, QUOTE_MARKER) != OK) return E_NO_MEM; + has_quote = 1; + break; + } default: if (DBufPutc(dbuf, c) != OK) return E_NO_MEM; -- 2.25.0
signature.asc
Description: PGP signature
_______________________________________________ Remind-fans mailing list [email protected] https://dianne.skoll.ca/mailman/listinfo/remind-fans Remind is at https://dianne.skoll.ca/projects/remind/
