XML Stream Filter: Subfiltered JSON loses curly braces markup on merge

Issue #530 resolved
Chase Tingley created an issue

Attached: an xmlstream configuration to apply PCDATA subfiltering using the JSON filter, along with a simple testcase. The JSON is embedded like this:

<json>{ 'key' : 'value' }</json>

On dev (0.30-SNAPSHOT), if I roundtrip this using tikal:

/Applications/okapi-apps_cocoa-macosx-x86_64_0.30-SNAPSHOT/tikal.sh -fc okf_xmlstream\@json.fprm -x test.xml
/Applications/okapi-apps_cocoa-macosx-x86_64_0.30-SNAPSHOT/tikal.sh -fc okf_xmlstream\@json.fprm -m test.xml.xlf

I find that the surrounding '{' and '}' have been lost in the merge:

<json> 'key' : 'value' </json>

Comments (2)

  1. Log in to comment