diff --git a/src/ical.c b/src/ical.c index 64368e3..535bca8 100644 --- a/src/ical.c +++ b/src/ical.c @@ -1331,12 +1331,9 @@ static char *ical_read_summary(char *line, unsigned *noskipped, } /* An event summary is one line only. */ - if (strchr(summary, '\n')) { - ical_log(log, item_type, itemline, _("line break in summary.")); - (*noskipped)++; - mem_free(summary); - summary = NULL; - } + for (p = summary; *p; p++) + if (*p == '\n') + *p = ' '; leave: return summary; } diff --git a/test/ical-009.sh b/test/ical-009.sh index dbd0a30..6c1a0d4 100755 --- a/test/ical-009.sh +++ b/test/ical-009.sh @@ -18,7 +18,7 @@ if [ "$1" = 'actual' ]; then elif [ "$1" = 'expected' ]; then cat <