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

Logging: Use filter without automatic pretty printing #757

Merged
merged 1 commit into from
Jul 29, 2017

Conversation

sunsations
Copy link
Contributor

The filter functionality is using nokogiri to filter out unwanted
elements. The default .to_xml of nokogiri automatically pretty prints
the document, even if the pretty_print_xml option is set to false.

This commit fixes this, by applying the filter and taking the
pretty_print_xml = false into account.

See http://stackoverflow.com/questions/8406251/nokogiri-to-xml-without-carriage-returns
for details of using nokogiri without carriage returns.

The filter functionality is using nokogiri to filter out unwanted
elements. The default `.to_xml` of nokogiri automatically pretty prints
the document, even if the pretty_print_xml option is set to false.

This commit fixes this, by applying the filter and taking the
`pretty_print_xml = false` into account.

See http://stackoverflow.com/questions/8406251/nokogiri-to-xml-without-carriage-returns
for details of using nokogiri without carriage returns.
@sunsations
Copy link
Contributor Author

Please excuse the failing build. The failing test case seems to be failing on master even without this commit.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great hygienic improvement!

@pcai
Copy link
Member

pcai commented Jul 29, 2017

Thanks!

@pcai pcai merged commit bafe8c7 into savonrb:master Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants