Skip to content
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

Fix: Ignore whitespace during serialisation #7

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Conversation

andyward
Copy link
Collaborator

Issue apparent in xml IDS files where line breaks/tabs etc in a simplevalue NodeText

We now trim simplevalues to more gracefully support input with insignificant whitespace.
Came about from sample IDS with (newline) whitespace in simplevalue elements content.
This is picked up as ContentError by IdsLib schema, but this makes us more graceful. (test case was a moliohouse.ids from cobuilder)

I can't think of any scenario where leading/trailing whitespace on a ExactConstraint will be relevant... @CBenghi ?

@andyward andyward merged commit a1970ab into main Sep 13, 2023
1 check passed
@andyward andyward deleted the fix/whitespace branch February 14, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant