-
Notifications
You must be signed in to change notification settings - Fork 39
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
Documenting how to filter out newlines from the parsed model #103
Labels
Comments
I think we can support an option like |
I will mull over this ; I am not 100% sure it is useful outside of testing. Will comment here later, thanks for the input! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just sharing a bit of code I'm using. For some context, I'm starting to use Saxy to build XML queries during testing. I must compare them to a baseline template, to ensure I used the
Saxy.XML
API correctly. These templates include newlines for human readability (indented/pretty-printed).To make the comparison automated, I'm removing the non-significant newlines with the following code so far:
I can use this like this afterwards:
This makes it easier to compare this using
ExUnit
assert x == y
, for instance.I wonder if:
Saxy.SimpleForm.parse_string
(less sure at this point, we can mull over this!)Let me know what you think!
The text was updated successfully, but these errors were encountered: