diff --git a/doc/source/usage.rst b/doc/source/usage.rst index c07ddf390..9c785effa 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -118,6 +118,9 @@ Several options are common to almost all of :program:`khal`'s commands location The event location. + location-separator + A separator: " @ " that appears when there is a location. + calendar The calendar name. diff --git a/khal/khalendar/event.py b/khal/khalendar/event.py index d8ef9cc50..5c2caba18 100644 --- a/khal/khalendar/event.py +++ b/khal/khalendar/event.py @@ -738,6 +738,9 @@ def fmt(s: str) -> str: return s.strip() if attributes["description"]: attributes["description-separator"] = " :: " attributes["location"] = self.location.strip() + attributes["location-separator"] = "" + if attributes["location"]: + attributes["location-separator"] = " @ " attributes["attendees"] = self.attendees attributes["all-day"] = str(allday) attributes["categories"] = self.categories