@@ -63,24 +63,24 @@ printChildrenInterfaces(const ContainerBasePrivate& container, bool success, con
6363 std::ostream& os = std::cerr) {
6464 static unsigned int id = 0 ;
6565 const unsigned int width = 10 ; // indentation of name
66- os << std::endl << (success ? ' +' : ' -' ) << ' ' << creator.name () << ' ' ;
66+ os << ' \n ' << (success ? ' +' : ' -' ) << ' ' << creator.name () << ' ' ;
6767 if (success)
6868 os << ++id << ' ' ;
6969 if (const auto conn = dynamic_cast <const ConnectingPrivate*>(creator.pimpl ()))
7070 os << conn->pendingPairsPrinter ();
71- os << std::endl ;
71+ os << ' \n ' ;
7272
7373 for (const auto & child : container.children ()) {
7474 auto cimpl = child->pimpl ();
7575 os << std::setw (width) << std::left << child->name ();
7676 if (!cimpl->starts () && !cimpl->ends ())
77- os << " ↕ " << std::endl ;
77+ os << " ↕ \n " ;
7878 if (cimpl->starts ())
79- os << " ↓ " << *child->pimpl ()->starts () << std::endl ;
79+ os << " ↓ " << *child->pimpl ()->starts () << ' \n ' ;
8080 if (cimpl->starts () && cimpl->ends ())
8181 os << std::setw (width) << " " ;
8282 if (cimpl->ends ())
83- os << " ↑ " << *child->pimpl ()->ends () << std::endl ;
83+ os << " ↑ " << *child->pimpl ()->ends () << ' \n ' ;
8484 }
8585}
8686
@@ -460,7 +460,7 @@ void ContainerBase::explainFailure(std::ostream& os) const {
460460 if (stage->numFailures ()) {
461461 os << stage->name () << " (0/" << stage->numFailures () << " )" ;
462462 stage->explainFailure (os);
463- os << std::endl ;
463+ os << ' \n ' ;
464464 break ;
465465 }
466466 stage->explainFailure (os); // recursively process children
@@ -469,7 +469,7 @@ void ContainerBase::explainFailure(std::ostream& os) const {
469469
470470std::ostream& operator <<(std::ostream& os, const ContainerBase& container) {
471471 ContainerBase::StageCallback processor = [&os](const Stage& stage, unsigned int depth) -> bool {
472- os << std::string (2 * depth, ' ' ) << *stage.pimpl () << std::endl ;
472+ os << std::string (2 * depth, ' ' ) << *stage.pimpl () << ' \n ' ;
473473 return true ;
474474 };
475475 container.traverseRecursively (processor);
0 commit comments