Use '\t' instead of static_cast<char>(9)
(cherry-picked from commit 4c29a0dd58
)
This commit is contained in:
parent
ee619b999f
commit
f05ca6536d
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue