On 2020-01-27 13:16, Dianne Skoll wrote:

>>>>>> - Add an element with the complete body, i.e. %\"bar%\" Foo today,

>> I implemented this in the attached patch.

This is what I ended up applying.  Your patch converted %" to " in the
output; mine retains it as %".

Regards,

Dianne.

commit 53acbf20522427c2225e14c6c373b07879712592
Author: Dianne Skoll <[email protected]>
Date:   Mon Jan 27 13:21:48 2020 -0500

    Don't swallow %" %" markers in -ppp mode.

diff --git a/src/dosubst.c b/src/dosubst.c
index 84674bd..ce99d2e 100644
--- a/src/dosubst.c
+++ b/src/dosubst.c
@@ -656,8 +656,13 @@ 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;
+           if (PsCal != PSCAL_LEVEL3) {
+               if (DBufPutc(dbuf, QUOTE_MARKER) != OK) return E_NO_MEM;
+               has_quote = 1;
+           } else {
+               if (DBufPutc(dbuf, '%') != OK) return E_NO_MEM;
+               if (DBufPutc(dbuf, c) != OK) return E_NO_MEM;
+           }
            break;

        default:
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to