Skip to content

Commit

Permalink
Merge pull request #309 from arademaker/issue-306
Browse files Browse the repository at this point in the history
fix issue #306
  • Loading branch information
goodmami authored Aug 16, 2020
2 parents 67cf8e0 + 7359766 commit 128809f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion delphin/codecs/dmrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ def _encode_node(node, properties, lnk):
attributes['carg'] = node.carg
e = etree.Element('node', attrib=attributes)
e.append(_encode_pred(node.predicate))
e.append(etree.Element('sortinfo', attrib=node.sortinfo))
if properties is True:
e.append(etree.Element('sortinfo', attrib=node.sortinfo))
else:
e.append(etree.Element('sortinfo'))
return e


Expand Down

0 comments on commit 128809f

Please sign in to comment.