From 043e95d880b372600d32744b24ba7123be3d50d5 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 18 May 2025 22:37:42 -0400 Subject: [PATCH] fix: Don't append when no logs were added Signed-off-by: Ihar Hrachyshka --- nixpkgs_review/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixpkgs_review/report.py b/nixpkgs_review/report.py index 6e72e185..3f86a2c2 100644 --- a/nixpkgs_review/report.py +++ b/nixpkgs_review/report.py @@ -101,7 +101,8 @@ def html_logs_section(logs_dir: Path, packages: list[Attr], system: str) -> str: continue res += f"
\n{pkg.name}\n
{tail}
\n
\n" seen_tails.add(tail) - res += "\n" + if res: + res += "\n" return res