Skip to content

Commit

Permalink
Resolve Issue 8 - define _sfun function
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalcorn committed Sep 4, 2024
1 parent a144cbd commit b7f7d0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions ical2rem.pl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7f7d0c

Please sign in to comment.