node-xml2js
node-xml2js copied to clipboard
Fix trim option for empty tags
Previously, this test would fail:
'test trimming on empty tag with whitespace': skeleton(trim: true, (r) ->
equ r.sample.emptytestanother[0], '')
where "emptytestanother" looked like this:
<emptytestanother>
</emptytestanother>
The value was coming back as \n \n (the whitespace between the tags).
Can you add the test and implement the fix in the CoffeeScript source code?
Sorry about that! Committed the wrong files.
I've fixed that and pushed the right changes.