From 5a0077f51becc430a133c76a7edc6bc8eb72d95a Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Thu, 31 Aug 2023 07:47:47 +0200 Subject: [PATCH] handle dump of RunSummary with and without '\n' and/or '\r' properly. --- src/dump_header.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dump_header.cpp b/src/dump_header.cpp index d9c8cdbf..2fdfd9a2 100644 --- a/src/dump_header.cpp +++ b/src/dump_header.cpp @@ -248,6 +248,8 @@ int dump_header_root(const std::string fileName, const bool summary, const bool tstr = static_cast(runSum->At(i)); str = tstr->String(); std::cout << str; + if (!str.Contains("\r") && !str.Contains("\n")) + std::cout << std::endl; } }