mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 21:26:02 +00:00
Use '\t' instead of static_cast<char>(9)
(cherry-picked from commit 4c29a0dd5895784b94a2393feddf0613742f3a0c)
This commit is contained in:
parent
ee619b999f
commit
f05ca6536d
@ -1247,7 +1247,7 @@ std::ostream& operator<<(std::ostream& outstream, const config& cfg)
|
||||
}
|
||||
|
||||
for(int j = 0; j < i - 1; j++) {
|
||||
outstream << static_cast<char>(9);
|
||||
outstream << '\t';
|
||||
}
|
||||
|
||||
outstream << val.first << " = " << val.second << '\n';
|
||||
@ -1255,14 +1255,14 @@ std::ostream& operator<<(std::ostream& outstream, const config& cfg)
|
||||
|
||||
for(const config::any_child& child : cfg.all_children_range()) {
|
||||
for(int j = 0; j < i - 1; ++j) {
|
||||
outstream << static_cast<char>(9);
|
||||
outstream << '\t';
|
||||
}
|
||||
|
||||
outstream << "[" << child.key << "]\n";
|
||||
outstream << child.cfg;
|
||||
|
||||
for(int j = 0; j < i - 1; ++j) {
|
||||
outstream << static_cast<char>(9);
|
||||
outstream << '\t';
|
||||
}
|
||||
|
||||
outstream << "[/" << child.key << "]\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user