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

Option to preserve new lines #1

Open
eseiver opened this issue Jan 23, 2018 · 2 comments
Open

Option to preserve new lines #1

eseiver opened this issue Jan 23, 2018 · 2 comments

Comments

@eseiver
Copy link
Collaborator

eseiver commented Jan 23, 2018

Sometimes when I pass in a string, I want an option to preserve new line information, so I'd like calling no_blank_parser to be an option that defaults to True.

@mpacer
Copy link
Owner

mpacer commented Jan 23, 2018

feel free to make a PR, happy to help guide you if you'd prefer that.

@mpacer
Copy link
Owner

mpacer commented Jan 24, 2018

I believe there was a complication related to this where it didn't make sense to instantiate a separate version of the parser for each instance of the XML object. We could just create two parsers ahead of time that will be globally available for all the XML instances regardless, and then you choose the parser based on the value of the option.

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

No branches or pull requests

2 participants