Skip to content

Commit

Permalink
added some more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 28, 2024
1 parent 71e8142 commit 2d8fc5a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/folia_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2186,17 +2186,28 @@ namespace folia {
}
return EMPTY_STRING;
}
if ( tp.debug() ){
DBG << " space = YES, Go on" << endl;
}
}

if ( !_data.empty() ){
const FoliaElement *last = _data.back();
if ( last &&
last->isSubClass(AbstractStructureElement_t)
if ( last && tp.debug() ){
DBG << "last is " << last << endl;
DBG << "isSubClass(AbstractStructure) == " << last->isSubClass(AbstractStructureElement_t) << endl;
DBG << "last->space() == " << last->space() << endl;
}
if ( last
&& last->isSubClass(AbstractStructureElement_t)
&& !last->space() ){
return EMPTY_STRING;
}
}
if ( text_delimiter() != "NONE" ) {
if ( tp.debug() ){
DBG << "text_delimiter() == '" << text_delimiter() << "'" << endl;
}
return text_delimiter();
}
else if ( _data.size() > 0 ) {
Expand Down

0 comments on commit 2d8fc5a

Please sign in to comment.