diff --git a/README.md b/README.md index 3aeb4af..f8c8bf5 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,9 @@ fset _sstd() coerce("STRING", _no_lz(_am_pm(sunset(today())))) MSG Sun is up today from [_srtd()] to [_sstd()].%"%"% ```` ## Revision History +### Version 0.7 2024-09-04 + - ISSUE 8: New version of remind complains if _sfun isn't defined. Output a header + to define a function that does nothing if the function doesn't exist. ### Version 0.6 2019-03-01 - Publish on GitHub and change license to MIT License - Add supporting files and explanation of how I use it diff --git a/ical2rem.pl b/ical2rem.pl old mode 100644 new mode 100755 index 0e053f7..e5c4100 --- a/ical2rem.pl +++ b/ical2rem.pl @@ -252,6 +252,13 @@ sub _process_todos { # ###################################################################### +# Issue 8 https://github.com/jbalcorn/ical2rem/issues/8 +# Make sure there is a _sfun function declared in the reminder file. We'll just make it do nothing here. +print 'IF args("_sfun") < 1 + FSET _sfun(x) choose(x,0) +ENDIF +'; + print _process_todos($hash->{'todos'}) if $PROCESS_TODOS; my ($leadtime, $yearkey, $monkey, $daykey,$uid,%eventsbyuid);