From 7092323db330f42fccccc17b7c2f36d8976b3756 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 3 Jul 2020 22:07:06 +0200
Subject: [PATCH] Fix week delimit highlight spilling over into details tables.

---
 enhance_table.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/enhance_table.py b/enhance_table.py
index 785e231..5c22f8d 100755
--- a/enhance_table.py
+++ b/enhance_table.py
@@ -134,7 +134,7 @@ if output_type == 'html':
     print('<html>')
     print('<style>')
     print('table, tr, th, td { border: 1px solid black; }')
-    print('tr:nth-child(7n+2) td { background-color: yellow; }')
+    print('.day_row:nth-child(7n+2) { background-color: yellow; }')
     print('</style>')
     print('<table>')
     print('<tr>')
@@ -147,7 +147,7 @@ if output_type == 'html':
     sorted_dates.reverse()
     sum_district = sorted_districts[-1]
     for date in sorted_dates:
-        print('<tr>')
+        print('<tr class="day_row">')
         print('<td>%s</td>' % date)
         long_wsum = translate['wsum']
         long_wavg = translate['wavg']
-- 
2.30.2