# HG changeset patch # User Mike Becker # Date 1754819825 -7200 # Node ID 881ab7ae15a67b4b4ee41e16d3092d33cec85b3b # Parent f1093b290fbfd0cc7335e1d949cbee27c4d733e8 fix new-line not being escaped in hg template (it still worked somehow) diff -r f1093b290fbf -r 881ab7ae15a6 src/main.cpp --- a/src/main.cpp Tue Jul 29 18:46:02 2025 +0200 +++ b/src/main.cpp Sun Aug 10 11:57:05 2025 +0200 @@ -260,7 +260,7 @@ proc.setbin(settings.hg); if (proc.exec_log({"log", "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year), - "--template", "{author}#{date|shortdate}#{desc|firstline}\n"})) { + "--template", "{author}#{date|shortdate}#{desc|firstline}\\n"})) { fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); return EXIT_FAILURE; }