if sum_district == district:
print('<th>%s</th>' % long_form)
else:
- print('<th class="district_name">%s</th>' % long_form)
+ # Wrap in div because the vertical orientation otherwise fails
+ # in Chromium.
+ print('<th><div class="district_name">%s</div></th>' % long_form)
print('</tr>')
for date in sorted_dates:
print('<tr class="day_row">')