-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
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
Trimmed whitespace on decoding String #94
Comments
Hi @TheFlow95, thanks for reporting this. The conversion of empty strings to |
Fix an issue uncovered by CoreOffice/CoreXLSX#59. Also include slightly unrelated cleanups. Resolve #94 * Fix empty element decoded as optional * Add failing test case to SpacePreserveTest * Disable `nesting` SwiftLint rule * Fix handling of nested empty string values * Add trimValueWhitespaces property on XMLDecoder
This is now fixed in |
|
Fix an issue uncovered by CoreOffice/CoreXLSX#59. Also include slightly unrelated cleanups. Resolve CoreOffice#94 * Fix empty element decoded as optional * Add failing test case to SpacePreserveTest * Disable `nesting` SwiftLint rule * Fix handling of nested empty string values * Add trimValueWhitespaces property on XMLDecoder
I had another issue with the library when decoding strings. For example if I have a string with a whitespace at the end in my XML, it will get trimmed when decoding but I don't want this behavior.
Moreover, when an element contains an empty string, it is automatically interpreted as nil.
The text was updated successfully, but these errors were encountered: