From 0ee3a277335ed792cb50d9f58942063c526d4abd Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Wed, 2 Apr 2025 18:07:10 +0200 Subject: [PATCH] [bugfix] HTML faild validator.w3.org checks --- write_utils.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/write_utils.py b/write_utils.py index a042e89..626fa8c 100644 --- a/write_utils.py +++ b/write_utils.py @@ -19,12 +19,13 @@ def get_html_header(refresh_rate=10): header = ['', '', '', - ' ', - ' ', + ' SurvBot status', + ' ', + ' ', + f' ', + ' ', + ' ', '', - f'', - '', - '', ''] header = _convert_to_textstring(header) return header @@ -86,7 +87,7 @@ def get_html_row(items, html_key='td'): html_class = item.get('html_class') class_str = f' class="{html_class}"' if html_class else '' row_string += 2 * default_space + f'<{html_key}{class_str} bgcolor="{color}" title="{tooltip}"' \ - + f'style="color:{font_color}"> {text_str}\n' + + f'style="color:{font_color}">{text_str}\n' row_string += default_space + '\n' return row_string