Closed d-wojciechowski closed 3 years ago
Hello.
Firstly, this is a very nice library! Secondly, I found a small bug.
When XML object is created, and as node body is given an empty string, and option useSelfClosingTags is used, the output is still with a closing tag.
"csvparent" { -parent // content is empty string } // output is <csvparent></csvparent>
What I would expect is to have a self-closing tag
As a workaround following solution is applied:
"csvparent" { if(parent.isNotBlank()){ -parent } }
Hey @d-wojciechowski
@d-wojciechowski This is fixed and published. Version 1.7.2 is available
Hello.
Firstly, this is a very nice library! Secondly, I found a small bug.
When XML object is created, and as node body is given an empty string, and option useSelfClosingTags is used, the output is still with a closing tag.
What I would expect is to have a self-closing tag
As a workaround following solution is applied: