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

Newlines removed by parser #34

Open
tsturzl opened this issue Aug 18, 2014 · 2 comments
Open

Newlines removed by parser #34

tsturzl opened this issue Aug 18, 2014 · 2 comments

Comments

@tsturzl
Copy link

tsturzl commented Aug 18, 2014

We use this library to parse xml feeds which feed data into our API. Some of this data is markdown and it has multiple newlines, however these newlines are being removed during parsing. This is breaking our markdown.

@lgomez
Copy link

lgomez commented Mar 10, 2015

+1

@bobzoller
Copy link

it's not documented, but you can do this using the preserve API.

var xml = new XmlStream(stream);
xml.preserve('my-text-element', true); // second param preserves whitespace

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

3 participants