From 214a761564e75abef1740738460288102a571a9b Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 3 Apr 2020 20:34:20 +0200 Subject: Accept empty DESCRIPTION in ical import Adresses GitHub issue #274. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/ical.c | 5 ----- test/ical-009.sh | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ical.c b/src/ical.c index dd14556..09d3b2a 100644 --- a/src/ical.c +++ b/src/ical.c @@ -899,11 +899,6 @@ static char *ical_read_note(char *line, unsigned *noskipped, ical_log(log, item_type, itemline, _("malformed description.")); (*noskipped)++; return NULL; - } else if (strlen(notestr) == 0) { - mem_free(notestr); - ical_log(log, item_type, itemline, _("empty description.")); - (*noskipped)++; - return NULL; } else { note = generate_note(notestr); mem_free(notestr); diff --git a/test/ical-009.sh b/test/ical-009.sh index 9558f15..31dc283 100755 --- a/test/ical-009.sh +++ b/test/ical-009.sh @@ -10,11 +10,12 @@ if [ "$1" = 'actual' ]; then echo "$out" | sed -n '4,5p' log=$(echo "$out" | awk '$1 == "See" {print $2}') cat "$log" | sed '1,17d' + cat $PWD/.calcurse/notes/* | wc rm -rf .calcurse || exit 1 elif [ "$1" = 'expected' ]; then cat <