From 2a9802cf85d9b7e1882cc01aad7eda9bd5e4813b Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Tue, 19 Mar 2024 13:02:28 -0400 Subject: [PATCH] Fix extra indentation in fcompare output The previous code placed the padding spaces after the newlines, which showed up as extra indentation on the following line. --- Tools/Plotfile/fcompare.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Tools/Plotfile/fcompare.cpp b/Tools/Plotfile/fcompare.cpp index 47e3f12b278..3a46120805c 100644 --- a/Tools/Plotfile/fcompare.cpp +++ b/Tools/Plotfile/fcompare.cpp @@ -279,19 +279,23 @@ int main_main() if (ivar_b[icomp_a] < 0) { amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a] << " " << std::setw(50) - << "< variable not present in both files > \n"; + << "< variable not present in both files > " + << "\n"; } else if (has_nan_a[icomp_a] && has_nan_b[icomp_a]) { amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a] << " " << std::setw(50) - << "< NaN present in both A and B > \n"; + << "< NaN present in both A and B > " + << "\n"; } else if (has_nan_a[icomp_a]) { amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a] << " " << std::setw(50) - << "< NaN present in A > \n"; + << "< NaN present in A > " + << "\n"; } else if (has_nan_b[icomp_a]) { amrex::Print() << " " << std::setw(24) << std::left << names_b[icomp_a] << " " << std::setw(50) - << "< NaN present in B > \n"; + << "< NaN present in B > " + << "\n"; } else { Real aerr = 0., rerr = 0.; if (aerror[icomp_a] > 0.) {