diff --git a/gtsam/discrete/DecisionTreeFactor.cpp b/gtsam/discrete/DecisionTreeFactor.cpp index 23b761b3b..105ff3a38 100644 --- a/gtsam/discrete/DecisionTreeFactor.cpp +++ b/gtsam/discrete/DecisionTreeFactor.cpp @@ -49,7 +49,7 @@ namespace gtsam { /* ************************************************************************* */ void DecisionTreeFactor::print(const string& s) const { - cout << s << ":\n"; + cout << s; IndexFactor::print("IndexFactor:"); Potentials::print("Potentials:"); } diff --git a/gtsam/discrete/DecisionTreeFactor.h b/gtsam/discrete/DecisionTreeFactor.h index c63e59517..537bb3e60 100644 --- a/gtsam/discrete/DecisionTreeFactor.h +++ b/gtsam/discrete/DecisionTreeFactor.h @@ -72,7 +72,7 @@ namespace gtsam { bool equals(const DecisionTreeFactor& other, double tol = 1e-9) const; // print - void print(const std::string& s = "DecisionTreeFactor: ") const; + void print(const std::string& s = "DecisionTreeFactor:\n") const; /// @} /// @name Standard Interface diff --git a/gtsam/discrete/DiscreteFactor.h b/gtsam/discrete/DiscreteFactor.h index 8152ff726..3789389e4 100644 --- a/gtsam/discrete/DiscreteFactor.h +++ b/gtsam/discrete/DiscreteFactor.h @@ -82,7 +82,7 @@ namespace gtsam { /// @{ // print - virtual void print(const std::string& s = "DiscreteFactor") const { + virtual void print(const std::string& s = "DiscreteFactor\n") const { IndexFactor::print(s); }