diff --git a/elementary/monitor/data_monitoring/report/data_monitoring_report.py b/elementary/monitor/data_monitoring/report/data_monitoring_report.py
index 9ccd9e5ef..3bf18d08b 100644
--- a/elementary/monitor/data_monitoring/report/data_monitoring_report.py
+++ b/elementary/monitor/data_monitoring/report/data_monitoring_report.py
@@ -72,15 +72,12 @@ def generate_report(
dumped_output_data = json.dumps(output_data)
encoded_output_data = base64.b64encode(dumped_output_data.encode("utf-8"))
- compiled_output_html = f"""
- {template_html_code}
-
- """
-
+ compiled_output_html = (
+ f""
+ f"{template_html_code}"
+ )
with open(html_path, "w", encoding="utf-8") as html_file:
html_file.write(compiled_output_html)