From d40804e0e98299bdfc8795d4cc191ad50d1bb6e3 Mon Sep 17 00:00:00 2001 From: Bartosz Broda <bartosz.broda@gmail.com> Date: Sun, 5 Jun 2011 22:34:39 +0200 Subject: [PATCH] fix secret feature (-A 1 + --tabs work correctly) by Ilor --- wccl-apps/wccl-run.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wccl-apps/wccl-run.cpp b/wccl-apps/wccl-run.cpp index 05317c7..4346b0d 100644 --- a/wccl-apps/wccl-run.cpp +++ b/wccl-apps/wccl-run.cpp @@ -310,7 +310,7 @@ void Runner::run(boost::shared_ptr<Corpus2::TokenReader> reader, bool first) if (aggregate_output_) { want_header_ = false; } - if (!outputs.empty() && !aggregate_output_) { + if (!outputs.empty() && (tabs ||!aggregate_output_)) { output_tabular(outputs); outputs.clear(); } @@ -318,7 +318,7 @@ void Runner::run(boost::shared_ptr<Corpus2::TokenReader> reader, bool first) timer.check_slice(); } if (!filter_op_) { - if (!aggregate_output_) { + if (tabs || !aggregate_output_) { std::cout << "\n"; } else { outputs.resize(outputs.size() + 1); @@ -326,7 +326,7 @@ void Runner::run(boost::shared_ptr<Corpus2::TokenReader> reader, bool first) } if (first) break; } - if (!outputs.empty() && aggregate_output_) { + if (!outputs.empty()) { output_tabular(outputs); } } -- GitLab