madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://"]
  insteadOf = madduck:

ical-parser: stringify an event label before printing
authormartin f. krafft <>
Tue, 10 Mar 2020 19:02:38 +0000 (20:02 +0100)
committermartin f. krafft <>
Tue, 10 Mar 2020 19:02:38 +0000 (20:02 +0100)

index 77e7fe2880cf4b1090ddf9be14ca416ea2304714..50ed4726865ec22c2525918a8fd5796f9df710ce 100755 (executable)
@@ -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)