From: martin f. krafft Date: Tue, 10 Mar 2020 19:02:38 +0000 (+0100) Subject: ical-parser: stringify an event label before printing X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/35dff95984713de562f2f5863aa2131bed841cca?ds=inline;hp=f043da5477d57171cfd6e8c319b47a70fd997294 ical-parser: stringify an event label before printing --- diff --git a/.mutt/icalparser b/.mutt/icalparser index 77e7fe2..50ed472 100755 --- a/.mutt/icalparser +++ b/.mutt/icalparser @@ -52,7 +52,7 @@ def parse_ics_file(fp): event['flags'] = ' '.join('{}:{}'.format(*f) for f in flags) for label in FIELDS: if label in event: - text = fill(event[label], width=COLUMNS-INDENT, + text = fill(str(event[label]), width=COLUMNS-INDENT, initial_indent='', subsequent_indent=' '*INDENT) print(f'{label.capitalize():>{WIDTH}s}{COLSEP}{text}')