[Remind-Fans] Changes coming to Remind...

Dianne Skoll dianne at skoll.ca
Mon Jan 27 13:25:08 EST 2020


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 <dianne at skoll.ca>
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:


More information about the Remind-fans mailing list