# HG changeset patch # User Mike Becker # Date 1738795893 -3600 # Node ID 2a4e97fc5ce5dfc9276aa918631a787aad8d1f5d # Parent b4979c194dc84f4a206fa6c6e0747ec6ee24dd68 fix repo h1 generated even when no author has commits - fixes #585 diff -r b4979c194dc8 -r 2a4e97fc5ce5 src/main.cpp --- a/src/main.cpp Tue Feb 04 22:23:09 2025 +0100 +++ b/src/main.cpp Wed Feb 05 23:51:33 2025 +0100 @@ -256,10 +256,13 @@ html::open(settings.fragment); for (const auto &[repo, authors] : heatmap.data()) { - html::h1(repo); + bool h1_rendered = false; for (const auto &[author, entries] : authors) { if (settings.exclude_author(author)) continue; - + if (!h1_rendered) { + html::h1(repo); + h1_rendered = true; + } html::h2(author); html::table_begin(report_year);