diff --git a/gtsam/discrete/DecisionTreeFactor.cpp b/gtsam/discrete/DecisionTreeFactor.cpp index c50811a50..ad4cbad43 100644 --- a/gtsam/discrete/DecisionTreeFactor.cpp +++ b/gtsam/discrete/DecisionTreeFactor.cpp @@ -226,7 +226,7 @@ namespace gtsam { stringstream ss; // Print out preamble. - ss << "
\n\n \n"; + ss << "
\n
\n \n"; // Print out header row. ss << " "; diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp index 82018abea..0bdc7d7b5 100644 --- a/gtsam/discrete/DiscreteConditional.cpp +++ b/gtsam/discrete/DiscreteConditional.cpp @@ -396,7 +396,7 @@ string DiscreteConditional::html(const KeyFormatter& keyFormatter, } // Print out preamble. - ss << "
\n \n"; + ss << "
\n \n"; // Print out header row. ss << " "; diff --git a/gtsam/discrete/DiscreteValues.cpp b/gtsam/discrete/DiscreteValues.cpp index 8a09de742..5d0c8dd3d 100644 --- a/gtsam/discrete/DiscreteValues.cpp +++ b/gtsam/discrete/DiscreteValues.cpp @@ -65,7 +65,7 @@ string DiscreteValues::html(const KeyFormatter& keyFormatter, stringstream ss; // Print out preamble. - ss << "
\n
\n \n"; + ss << "
\n
\n \n"; // Print out header row. ss << " \n"; @@ -76,7 +76,7 @@ string DiscreteValues::html(const KeyFormatter& keyFormatter, // Print out all rows. for (const auto& kv : *this) { ss << " "; - ss << ""; ss << "\n"; } diff --git a/gtsam/discrete/tests/testDiscreteValues.cpp b/gtsam/discrete/tests/testDiscreteValues.cpp index 5e7c0ac6f..c8a1fa168 100644 --- a/gtsam/discrete/tests/testDiscreteValues.cpp +++ b/gtsam/discrete/tests/testDiscreteValues.cpp @@ -57,8 +57,8 @@ TEST(DiscreteValues, htmlWithValueFormatter) { " \n" " \n" " \n" - " \n" - " \n" + " \n" + " \n" " \n" "
Variablevalue
" << keyFormatter(kv.first) << "\'" + ss << "" << keyFormatter(kv.first) << "" << Translate(names, kv.first, kv.second) << "
Variablevalue
B'-
A'One
B-
AOne
\n" "
";