Skip to content
Snippets Groups Projects
Commit 43ea8983 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix corpus build process

parent 63217a7e
No related branches found
No related tags found
No related merge requests found
......@@ -875,7 +875,9 @@ class Corpus(HashidMixin, db.Model):
text_element.set('publishing_year', str(corpus_file.publishing_year)) # noqa
text_element.set('school', corpus_file.school or 'NULL')
text_element.set('title', corpus_file.title)
corpus_element.insert(1, text_element)
text_element.tail = '\n'
# corpus_element.insert(1, text_element)
corpus_element.append(text_element)
ET.ElementTree(corpus_element).write(
os.path.join(self.path, 'cwb', 'corpus.vrt'),
encoding='utf-8'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment