Skip to content

Commit

Permalink
fixed FoLiA output for empty sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko van der Sloot authored and Ko van der Sloot committed May 28, 2019
1 parent 696c164 commit 1e24a4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FrogAPI.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,11 @@ void FrogAPI::handle_one_text_parent( ostream& os,
timers.tokTimer.stop();
}
if ( options.doXMLout ){
if ( sents.size() > 1 ){
if ( sents.size() == 0 ){
// might happen in rare cases
// just skip
}
else if ( sents.size() > 1 ){
// multiple sentences. We need an extra Paragraph.
folia::KWargs args;
string e_id = e->id();
Expand Down

0 comments on commit 1e24a4c

Please sign in to comment.