Use '\t' instead of static_cast<char>(9)

(cherry-picked from commit 4c29a0dd58)
This commit is contained in:
Charles Dang 2018-07-13 15:53:20 +11:00
parent ee619b999f
commit f05ca6536d

View file

@ -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";