# HG changeset patch # User Paul Boddie # Date 1396994772 -7200 # Node ID 5d1933e289c649b943f457afaec694baa7430737 # Parent 7743b28bfd9a73f705cba8f2ad1affd799cb86f2 Improved event display, handling events that occupy instants in time, but avoiding unnecessary empty regions between events ending and subsequent ones starting at the same time. diff -r 7743b28bfd9a -r 5d1933e289c6 EventAggregatorSupport/View.py --- a/EventAggregatorSupport/View.py Tue Apr 08 00:42:55 2014 +0200 +++ b/EventAggregatorSupport/View.py Wed Apr 09 00:06:12 2014 +0200 @@ -1377,6 +1377,7 @@ # Visit each slot corresponding to a location (or no location). day_row = [] + have_event = False for location in locations: @@ -1390,8 +1391,14 @@ else: rowspans[event] += 1 day_row.append((location, event)) - - day_rows.append((period, day_row, start_times, end_times)) + have_event = have_event or event + + start, end = period.as_limits() + + # Only retain non-instant periods or periods having events. + + if have_event or start != end: + day_rows.append((period, day_row, start_times, end_times)) # Output the locations. diff -r 7743b28bfd9a -r 5d1933e289c6 README.txt --- a/README.txt Tue Apr 08 00:42:55 2014 +0200 +++ b/README.txt Wed Apr 09 00:06:12 2014 +0200 @@ -367,6 +367,9 @@ * Added aggregation and improved formatting of iCalendar pages and regions. * Re-added the "pages" dependency to the macro, since its absence causes the non-script-based navigation to fail to update the calendar. + * Improved event display, handling events that occupy instants in time, but + avoiding unnecessary empty regions between events ending and subsequent + ones starting at the same time. New in EventAggregator 0.10.2 (Changes since EventAggregator 0.10.1) --------------------------------------------------------------------