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

Add :save_with parameter to relativize_paths #1237

merged 1 commit into from Oct 27, 2017


None yet
3 participants

gpakosz commented Oct 25, 2017

Sometimes, you don't Nokogiri to reformat the document. Typically when you plan to style elements with white-space: pre;.

This PR adds a save_with parameter to the relativize_paths filter to which one can pass e.g. Nokogiri::XML::Node::SaveOptions::DEFAULT_HTML & ~Nokogiri::XML::Node::SaveOptions::FORMAT which clears the formatting bit from the default save options.

@ddfreyne ddfreyne merged commit 9a8d608 into nanoc:master Oct 27, 2017

3 checks passed

codecov/patch 100% of diff hit (target 98.24%)
codecov/project 98.24% (+<.01%) compared to 6f84ecc
continuous-integration/travis-ci/pr The Travis CI build passed

@gpakosz gpakosz deleted the gpakosz:relativize_paths branch Nov 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment