From aead1d7e86d135885557d419b3afbfed16c2a2a2 Mon Sep 17 00:00:00 2001 From: Eduardov Eduard Date: Tue, 28 Oct 2014 15:02:41 +0300 Subject: [PATCH] Improved readability of written ini files by adding spaces between keys and values and newlines between sections. --- include/boost/property_tree/ini_parser.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/property_tree/ini_parser.hpp b/include/boost/property_tree/ini_parser.hpp index d2a457f..7e91a7c 100644 --- a/include/boost/property_tree/ini_parser.hpp +++ b/include/boost/property_tree/ini_parser.hpp @@ -249,11 +249,12 @@ namespace boost { namespace property_tree { namespace ini_parser if (!it2->second.empty()) BOOST_PROPERTY_TREE_THROW(ini_parser_error( "ptree is too deep", "", 0)); - stream << it2->first << Ch('=') + stream << it2->first << Ch(' ') << Ch('=') << Ch(' ') << it2->second.template get_value< std::basic_string >() << Ch('\n'); } + stream << Ch('\n'); } } -- 1.8.1.4