[Remind-Fans] Too many full OMITs?

Dianne Skoll dianne at skoll.ca
Thu Nov 14 16:57:29 EST 2019


On 11/14/19 8:54 AM, Ian! D. Allen wrote:

> Please add a warning that the dates have been swapped.

Okee-doke.


commit 72403a251284bd702058a3c4648d7fd293509e11
Author: Dianne Skoll <dianne at skoll.ca>
Date:   Thu Nov 14 11:09:51 2019 -0500

    Warn if "OMIT a THROUGH b" has a > b

diff --git a/src/omit.c b/src/omit.c
index f4fb8cd..dd6df09 100644
--- a/src/omit.c
+++ b/src/omit.c
@@ -453,6 +453,7 @@ DoThroughOmit(ParsePtr p, int ystart, int mstart, int dstart)
     end   = Julian(yend,   mend,   dend);

     if (end < start) {
+       Eprint("Warning: Swapping dates on OMIT ... THROUGH ... line");
        tmp = start;
        start = end;
        end = tmp;

Regards,

Dianne.


More information about the Remind-fans mailing list