Skip to content

Commit

Permalink
[folia] Don't forget to include text tail after comment proycon/folia#37
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 25, 2017
1 parent d9e0440 commit cec7bf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynlpl/formats/folia.py
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,10 @@ def parsexml(Class, node, doc, **kwargs): #pylint: disable=bad-classmethod-argum

for subnode in node: #pylint: disable=too-many-nested-blocks
#don't trip over comments
if not isinstance(subnode, ElementTree._Comment): #pylint: disable=protected-access
if isinstance(subnode, ElementTree._Comment): #pylint: disable=protected-access
if (Class.TEXTCONTAINER or Class.PHONCONTAINER) and subnode.tail:
args.append(subnode.tail)
else:
if subnode.tag.startswith('{' + NSFOLIA + '}'):
if doc.debug >= 1: print("[PyNLPl FoLiA DEBUG] Processing subnode " + subnode.tag[nslen:],file=stderr)
try:
Expand Down

0 comments on commit cec7bf8

Please sign in to comment.