We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jxon is stripping white space from XML content, especially ones explicitly with the xml:space="preserve" attribute when going from stringToJs.
xml:space="preserve"
Example:
<w:r> <w:t>Reactful</w:t> </w:r> <w:r> <w:t xml:space="preserve"> Word</w:t> </w:r>
"w:r": [ { "w:t": "Reactful" }, { "w:t": { "$xml:space": "preserve", "_": "Word" } } ]
Notice the space before "Word" being stripped.
The text was updated successfully, but these errors were encountered:
The offending code is in jxon.js, line 138. Removing the .trim() resolves this issue. Would it be possible to have this fixed?
.trim()
Sorry, something went wrong.
Any update on this ? can it configured to preserve space or not ?
No branches or pull requests
jxon is stripping white space from XML content, especially ones explicitly with the
xml:space="preserve"
attribute when going from stringToJs.Example:
Notice the space before "Word" being stripped.
The text was updated successfully, but these errors were encountered: