fix: daily report HTML line breaks without double spacing

Use single <br> in report_html and document DAILY_REPORT_ENABLED toggle.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-05-30 09:52:09 +10:00
parent 3820687310
commit 454a220890
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1796,7 +1796,7 @@ stats = {
"generated_by": "agent",
}
escaped = html.escape(body)
report_html = '<div class="agent-report">' + escaped.replace("\n", "<br>\n") + "</div>"
report_html = '<div class="agent-report">' + escaped.replace("\n", "<br>") + "</div>"
print(
json.dumps(
{