1.1 --- a/EventAggregatorSupport/View.py Tue Apr 08 00:42:55 2014 +0200
1.2 +++ b/EventAggregatorSupport/View.py Wed Apr 09 00:06:12 2014 +0200
1.3 @@ -1377,6 +1377,7 @@
1.4 # Visit each slot corresponding to a location (or no location).
1.5
1.6 day_row = []
1.7 + have_event = False
1.8
1.9 for location in locations:
1.10
1.11 @@ -1390,8 +1391,14 @@
1.12 else:
1.13 rowspans[event] += 1
1.14 day_row.append((location, event))
1.15 -
1.16 - day_rows.append((period, day_row, start_times, end_times))
1.17 + have_event = have_event or event
1.18 +
1.19 + start, end = period.as_limits()
1.20 +
1.21 + # Only retain non-instant periods or periods having events.
1.22 +
1.23 + if have_event or start != end:
1.24 + day_rows.append((period, day_row, start_times, end_times))
1.25
1.26 # Output the locations.
1.27
2.1 --- a/README.txt Tue Apr 08 00:42:55 2014 +0200
2.2 +++ b/README.txt Wed Apr 09 00:06:12 2014 +0200
2.3 @@ -367,6 +367,9 @@
2.4 * Added aggregation and improved formatting of iCalendar pages and regions.
2.5 * Re-added the "pages" dependency to the macro, since its absence causes the
2.6 non-script-based navigation to fail to update the calendar.
2.7 + * Improved event display, handling events that occupy instants in time, but
2.8 + avoiding unnecessary empty regions between events ending and subsequent
2.9 + ones starting at the same time.
2.10
2.11 New in EventAggregator 0.10.2 (Changes since EventAggregator 0.10.1)
2.12 --------------------------------------------------------------------