Skip to content
Snippets Groups Projects
Commit d40804e0 authored by Bartosz Broda's avatar Bartosz Broda
Browse files

fix secret feature (-A 1 + --tabs work correctly) by Ilor

parent a3e9f32a
Branches
No related merge requests found
......@@ -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);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment