From ced133e40290c30809e6d632cdf1e6f749ea9dd5 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 16 Sep 2016 16:04:11 -0700 Subject: 3371 --- html/003trace.cc.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'html/003trace.cc.html') diff --git a/html/003trace.cc.html b/html/003trace.cc.html index 0e35ce97..7a7cb31f 100644 --- a/html/003trace.cc.html +++ b/html/003trace.cc.html @@ -166,10 +166,11 @@ Hide_errors = false;void trace_stream::newline() { if (!curr_stream) return; string curr_contents = curr_stream->str(); - if (curr_contents.empty()) return; - past_lines.push_back(trace_line(curr_depth, trim(curr_label), curr_contents)); // preserve indent in contents - if (!Hide_errors && curr_label == "error") - cerr << curr_label << ": " << curr_contents << '\n'; + if (!curr_contents.empty()) { + past_lines.push_back(trace_line(curr_depth, trim(curr_label), curr_contents)); // preserve indent in contents + if (!Hide_errors && curr_label == "error") + cerr << curr_label << ": " << curr_contents << '\n'; + } delete curr_stream; curr_stream = NULL; curr_label.clear(); -- cgit 1.4.1-2-gfad0