From 40fa4057517c031c32ec44116947b43483b262bd Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 22 Mar 2015 01:01:46 -0700 Subject: docs: Converted some samples to Unix newline --- docs/samples/save_declaration.cpp | 54 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'docs/samples/save_declaration.cpp') diff --git a/docs/samples/save_declaration.cpp b/docs/samples/save_declaration.cpp index 0d54782..7ca1e07 100644 --- a/docs/samples/save_declaration.cpp +++ b/docs/samples/save_declaration.cpp @@ -1,27 +1,27 @@ -#include "pugixml.hpp" - -#include - -int main() -{ - // tag::code[] - // get a test document - pugi::xml_document doc; - doc.load_string("hey"); - - // add a custom declaration node - pugi::xml_node decl = doc.prepend_child(pugi::node_declaration); - decl.append_attribute("version") = "1.0"; - decl.append_attribute("encoding") = "UTF-8"; - decl.append_attribute("standalone") = "no"; - - // - // - // hey - // - doc.save(std::cout); - std::cout << std::endl; - // end::code[] -} - -// vim:et +#include "pugixml.hpp" + +#include + +int main() +{ + // tag::code[] + // get a test document + pugi::xml_document doc; + doc.load_string("hey"); + + // add a custom declaration node + pugi::xml_node decl = doc.prepend_child(pugi::node_declaration); + decl.append_attribute("version") = "1.0"; + decl.append_attribute("encoding") = "UTF-8"; + decl.append_attribute("standalone") = "no"; + + // + // + // hey + // + doc.save(std::cout); + std::cout << std::endl; + // end::code[] +} + +// vim:et -- cgit v1.2.3