1-
21import os
32import sys
43
@@ -39,8 +38,9 @@ def readdate(data):
3938mainpage .write ('<!DOCTYPE html>\n ' )
4039mainpage .write ('<html lang="en">\n ' )
4140mainpage .write ('<head>\n ' )
41+ mainpage .write ('<meta charset="utf-8">\n ' )
4242mainpage .write ('<title>DACA2</title>\n ' )
43- mainpage .write ('<style> td { font-size: 0.8em ; } </style>\n ' )
43+ mainpage .write ('<style>td { font-size: 0.9em ; } td + td { padding-left: 6em; } </style>\n ' )
4444mainpage .write ('</head>\n ' )
4545mainpage .write ('<body>\n ' )
4646mainpage .write ('<h1>DACA2</h1>\n ' )
@@ -51,7 +51,7 @@ def readdate(data):
5151mainpage .write ('<p>The hardware running the analysis is a Raspberry PI.</p>\n ' )
5252mainpage .write ('<table>\n ' )
5353mainpage .write (
54- '<tr><td>Name</td><td width="100"> </td><td >Date</td></tr>\n ' )
54+ '<tr><td>Name</td><td>Date</td></tr>\n ' )
5555
5656lastupdate = None
5757recent = []
@@ -75,19 +75,20 @@ def readdate(data):
7575 recent .append (a )
7676
7777 mainpage .write (
78- '<tr><td><a href="daca2-' + a + '.html">' + a + '</a></td><td></td><td> ' + datestr + '</td></tr>\n ' )
78+ '<tr><td><a href="daca2-' + a + '.html">' + a + '</a></td><td>' + datestr + '</td></tr>\n ' )
7979
8080 data = data .replace ('&' , '&' )
8181 data = data .replace ('<' , '<' )
8282 data = data .replace ('>' , '>' )
83- data = data .replace ('\' ' , ''' )
84- data = data .replace ('"' , '"' )
8583 data = data .replace ('\n ' , '\n ' )
8684
8785 f = open (path + '/daca2-' + a + '.html' , 'wt' )
8886 f .write ('<!DOCTYPE html>\n ' )
89- f .write (
90- '<html lang="en"><head><title>DACA2 - ' + a + '</title></head>\n ' )
87+ f .write ('<html lang="en">\n ' )
88+ f .write ('<head>\n ' )
89+ f .write ('<meta charset="utf-8">\n ' )
90+ f .write ('<title>DACA2 - ' + a + '</title>\n ' )
91+ f .write ('</head>\n ' )
9192 f .write ('<body>\n ' )
9293 f .write ('<h1>DACA2 - ' + a + '</h1>' )
9394 f .write ('<pre>\n ' + data + '</pre>\n ' )
@@ -101,7 +102,7 @@ def readdate(data):
101102 mainpage .write ('<p>Last update: ' + lastupdate + '</p>' )
102103 allrecent = ''
103104 for r in recent :
104- allrecent = allrecent + ' <a href="daca2-' + r + '.html">' + r + '</a>'
105+ allrecent = allrecent + '<a href="daca2-' + r + '.html">' + r + '</a>'
105106 mainpage .write ('<p>Most recently updated: ' + allrecent + '</p>' )
106107
107108mainpage .write ('</body>\n ' )
0 commit comments