fix output indentation

This commit is contained in:
Gunter Labes 2008-02-08 14:04:05 +00:00
parent 172ca8ba7b
commit abdb20eeb9

View file

@ -696,7 +696,7 @@ std::ostream& operator << (std::ostream& outstream, const config& cfg) {
static int i = 0;
i++;
for(string_map::const_iterator val = cfg.values.begin(); val != cfg.values.end(); ++val) {
for (int j = 0; j < i; j++){ outstream << char(9); }
for (int j = 0; j < i-1; j++){ outstream << char(9); }
outstream << val->first << " = " << val->second << "\n";
}
for(config::all_children_iterator list = cfg.ordered_begin(); list != cfg.ordered_end(); ++list) {