Skip to content

Commit

Permalink
Use '\t' instead of static_cast<char>(9)
Browse files Browse the repository at this point in the history
(cherry-picked from commit 4c29a0d)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent ee619b9 commit f05ca65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.cpp
Expand Up @@ -1247,22 +1247,22 @@ 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';
}

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";
Expand Down

0 comments on commit f05ca65

Please sign in to comment.