From 35dff95984713de562f2f5863aa2131bed841cca Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 10 Mar 2020 20:02:38 +0100 Subject: [PATCH] ical-parser: stringify an event label before printing --- .mutt/icalparser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}') -- 2.39.2