Skip to content
Snippets Groups Projects
Commit 7df6865c authored by ilor's avatar ilor
Browse files

Fix issue #1391 (runwccl outputing extra whitespace after each line)

parent 5bea7007
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ void Runner::do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence)
}
foreach (const std::vector< UnicodeString >& line, outputs) {
for (size_t i = 0; i < line.size(); ++i) {
for (size_t i = 0; i < line.size() - 1; ++i) {
UnicodeString u = line[i];
if (tabs) {
std::cout << PwrNlp::to_utf8(line[i]) << "\t";
......@@ -202,6 +202,9 @@ void Runner::do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence)
std::cout << PwrNlp::to_utf8(u);
}
}
if (!line.empty()) {
std::cout << PwrNlp::to_utf8(line.back());
}
std::cout << "\n";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment