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

fix incorrect extra <chunk> tags in ccl output, reported as issue 1452

parent 1650f86c
No related merge requests found
......@@ -22,9 +22,7 @@ CclWriter::~CclWriter()
void CclWriter::write_sentence(const Sentence& s)
{
paragraph_head();
const AnnotatedSentence* ann = dynamic_cast<const AnnotatedSentence*>(&s);
if (use_indent_) indent_more();
osi() << "<sentence>\n";
if (use_indent_) indent_more();
for (size_t idx = 0; idx < s.size(); ++idx) {
......@@ -48,9 +46,8 @@ void CclWriter::write_sentence(const Sentence& s)
XmlWriter::write_token(*t);
}
}
if (use_indent_) indent_less(); osi() << "</sentence>\n";
if (use_indent_) indent_less();
osi() << "</chunk>\n";
osi() << "</sentence>\n";
}
void CclWriter::write_chunk(const Chunk &c)
......
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