mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 15:23:33 +00:00
fix output indentation
This commit is contained in:
parent
172ca8ba7b
commit
abdb20eeb9
@ -696,7 +696,7 @@ std::ostream& operator << (std::ostream& outstream, const config& cfg) {
|
|||||||
static int i = 0;
|
static int i = 0;
|
||||||
i++;
|
i++;
|
||||||
for(string_map::const_iterator val = cfg.values.begin(); val != cfg.values.end(); ++val) {
|
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";
|
outstream << val->first << " = " << val->second << "\n";
|
||||||
}
|
}
|
||||||
for(config::all_children_iterator list = cfg.ordered_begin(); list != cfg.ordered_end(); ++list) {
|
for(config::all_children_iterator list = cfg.ordered_begin(); list != cfg.ordered_end(); ++list) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user