diff --git a/khal/khalendar/event.py b/khal/khalendar/event.py index 7c3a0bbf2..526fb1392 100644 --- a/khal/khalendar/event.py +++ b/khal/khalendar/event.py @@ -524,6 +524,7 @@ def categories(self) -> str: def update_categories(self, categories: List[str]) -> None: assert isinstance(categories, list) + categories = [c.strip() for c in categories if c != ""] self._vevents[self.ref].pop('CATEGORIES', False) if categories: self._vevents[self.ref].add('CATEGORIES', categories)