From 2f73654b742d2a446d2f5b2bacebda7d9b9cf457 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 2 Oct 2018 21:06:46 -0700 Subject: 4656 --- 003trace.cc | 3 +-- subx/003trace.cc | 3 +-- transect/003trace.cc | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/003trace.cc b/003trace.cc index ec1c876a..11b54818 100644 --- a/003trace.cc +++ b/003trace.cc @@ -164,9 +164,8 @@ string trace_stream::readable_contents(string label) { ostringstream output; label = trim(label); for (vector::iterator p = past_lines.begin(); p != past_lines.end(); ++p) - if (label.empty() || label == p->label) { + if (label.empty() || label == p->label) output << std::setw(4) << p->depth << ' ' << p->label << ": " << p->contents << '\n'; - } return output.str(); } diff --git a/subx/003trace.cc b/subx/003trace.cc index da5f3807..22622930 100644 --- a/subx/003trace.cc +++ b/subx/003trace.cc @@ -165,9 +165,8 @@ string trace_stream::readable_contents(string label) { ostringstream output; label = trim(label); for (vector::iterator p = past_lines.begin(); p != past_lines.end(); ++p) - if (label.empty() || label == p->label) { + if (label.empty() || label == p->label) output << std::setw(4) << p->depth << ' ' << p->label << ": " << p->contents << '\n'; - } return output.str(); } diff --git a/transect/003trace.cc b/transect/003trace.cc index fcbf26c0..3b4ae596 100644 --- a/transect/003trace.cc +++ b/transect/003trace.cc @@ -163,9 +163,8 @@ string trace_stream::readable_contents(string label) { ostringstream output; label = trim(label); for (vector::iterator p = past_lines.begin(); p != past_lines.end(); ++p) - if (label.empty() || label == p->label) { + if (label.empty() || label == p->label) output << std::setw(4) << p->depth << ' ' << p->label << ": " << p->contents << '\n'; - } return output.str(); } -- cgit 1.4.1-2-gfad0