tsv2agenda: add support for multiline fileds - ics2txt - convert icalendar .ics file to plain text HTML git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit e485da8103dbe29bd2376a5f3e095581ce0bc50e DIR parent fabc0ade1ea80ccf0f7e57b749676d5b976fd6ed HTML Author: Josuah Demangeon <me@josuah.net> Date: Sun, 20 Jun 2021 21:53:43 +0200 tsv2agenda: add support for multiline fileds Diffstat: M tsv2agenda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/tsv2agenda.c b/tsv2agenda.c @@ -147,7 +147,7 @@ print(AgendaCtx *ctx, char **fields) fputc('\n', stdout); for (size_t i = FIELD_OTHER, row = 0; i < ctx->fieldnum; i++) { - if (*fields[i] == '\0') + if (fields[i][strspn(fields[i], " \\n")] == '\0') continue; print_row(ctx, fields[i], &beg, &end, &row); }