From a20fbd216ca915d7e70a93793ac23e013063abe4 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Wed, 27 Apr 2011 10:54:51 +0200
Subject: [PATCH] fix incorrect extra <chunk> tags in ccl output, reported as
 issue 1452

---
 libcorpus2/io/cclwriter.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libcorpus2/io/cclwriter.cpp b/libcorpus2/io/cclwriter.cpp
index 3e1a40b..35f8f25 100644
--- a/libcorpus2/io/cclwriter.cpp
+++ b/libcorpus2/io/cclwriter.cpp
@@ -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)
-- 
GitLab