@@ -62,24 +62,24 @@ printChildrenInterfaces(const ContainerBasePrivate& container, bool success, con
6262 std::ostream& os = std::cerr) {
6363 static unsigned int id = 0 ;
6464 const unsigned int width = 10 ; // indentation of name
65- os << std::endl << (success ? ' +' : ' -' ) << ' ' << creator.name () << ' ' ;
65+ os << ' \n ' << (success ? ' +' : ' -' ) << ' ' << creator.name () << ' ' ;
6666 if (success)
6767 os << ++id << ' ' ;
6868 if (const auto conn = dynamic_cast <const ConnectingPrivate*>(creator.pimpl ()))
6969 os << conn->pendingPairsPrinter ();
70- os << std::endl ;
70+ os << ' \n ' ;
7171
7272 for (const auto & child : container.children ()) {
7373 auto cimpl = child->pimpl ();
7474 os << std::setw (width) << std::left << child->name ();
7575 if (!cimpl->starts () && !cimpl->ends ())
76- os << " ↕ " << std::endl ;
76+ os << " ↕ \n " ;
7777 if (cimpl->starts ())
78- os << " ↓ " << *child->pimpl ()->starts () << std::endl ;
78+ os << " ↓ " << *child->pimpl ()->starts () << ' \n ' ;
7979 if (cimpl->starts () && cimpl->ends ())
8080 os << std::setw (width) << " " ;
8181 if (cimpl->ends ())
82- os << " ↑ " << *child->pimpl ()->ends () << std::endl ;
82+ os << " ↑ " << *child->pimpl ()->ends () << ' \n ' ;
8383 }
8484}
8585
@@ -459,7 +459,7 @@ void ContainerBase::explainFailure(std::ostream& os) const {
459459 if (stage->numFailures ()) {
460460 os << stage->name () << " (0/" << stage->numFailures () << " )" ;
461461 stage->explainFailure (os);
462- os << std::endl ;
462+ os << ' \n ' ;
463463 break ;
464464 }
465465 stage->explainFailure (os); // recursively process children
@@ -468,7 +468,7 @@ void ContainerBase::explainFailure(std::ostream& os) const {
468468
469469std::ostream& operator <<(std::ostream& os, const ContainerBase& container) {
470470 ContainerBase::StageCallback processor = [&os](const Stage& stage, unsigned int depth) -> bool {
471- os << std::string (2 * depth, ' ' ) << *stage.pimpl () << std::endl ;
471+ os << std::string (2 * depth, ' ' ) << *stage.pimpl () << ' \n ' ;
472472 return true ;
473473 };
474474 container.traverseRecursively (processor);
0 commit comments