Replace std:.endl by backslash n.
parent
5192b837da
commit
97145a7f20
|
@ -245,7 +245,7 @@ private:
|
||||||
/** print our 'stack' */
|
/** print our 'stack' */
|
||||||
std::string print_hierarchy() {
|
std::string print_hierarchy() {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << std::endl;
|
ss << "\n";
|
||||||
|
|
||||||
const char* last = history.back().first.c_str();
|
const char* last = history.back().first.c_str();
|
||||||
std::string pad;
|
std::string pad;
|
||||||
|
@ -253,14 +253,16 @@ private:
|
||||||
for(ChunkHistory::reverse_iterator rev = history.rbegin(),
|
for(ChunkHistory::reverse_iterator rev = history.rbegin(),
|
||||||
end = history.rend(); rev != end; ++rev, pad += " ")
|
end = history.rend(); rev != end; ++rev, pad += " ")
|
||||||
{
|
{
|
||||||
ss << pad << (*rev).first << "(Index: " << (*rev).second[last] << ")" << std::endl;
|
ss << pad << (*rev).first << "(Index: " << (*rev).second[last] << ")" << "\n";
|
||||||
last = (*rev).first.c_str();
|
last = (*rev).first.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
ss << std::endl << "Debug trace: "<< std::endl;
|
ss << std::endl << "Debug trace: "<< "\n";
|
||||||
for (std::vector<std::string>::const_iterator it = debug_trace.begin(); it != debug_trace.end(); ++it) {
|
for (std::vector<std::string>::const_iterator it = debug_trace.begin(); it != debug_trace.end(); ++it) {
|
||||||
ss << *it << std::endl;
|
ss << *it << "\n";
|
||||||
}
|
}
|
||||||
|
ss << std::flush;
|
||||||
|
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue