home
·
contact
·
privacy
projects
/
berlin-corona-table
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5252dee
)
Use long form district names in HTML variant.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 18:59:04 +0000
(20:59 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 18:59:04 +0000
(20:59 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 0482bdfbffbf8fe0e89bb174454b04f561318a92..acbebc6b950905cab22a247a42010b69a15c166a 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-136,7
+136,9
@@
if output_type == 'html':
print('<tr>')
print('<th>date</th>')
for district in sorted_districts:
- print('<th>%s</th>' % district)
+ long_form = translate[district]
+ print('<th style="writing-mode: vertical-rl; '
+ 'transform: rotate(180deg);">%s</th>' % long_form)
print('</tr>')
sorted_dates.reverse()
for date in sorted_dates: