diff --git a/gtsam/discrete/DecisionTreeFactor.cpp b/gtsam/discrete/DecisionTreeFactor.cpp
index c50811a506..ad4cbad434 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 82018abea6..0bdc7d7b5a 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 8a09de7425..5d0c8dd3d5 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 << " Variable | value |
\n";
@@ -76,7 +76,7 @@ string DiscreteValues::html(const KeyFormatter& keyFormatter,
// Print out all rows.
for (const auto& kv : *this) {
ss << " ";
- ss << "" << keyFormatter(kv.first) << " | \'"
+ ss << " | " << keyFormatter(kv.first) << " | "
<< Translate(names, kv.first, kv.second) << " | ";
ss << "
\n";
}
diff --git a/gtsam/discrete/tests/testDiscreteValues.cpp b/gtsam/discrete/tests/testDiscreteValues.cpp
index 5e7c0ac6f1..c8a1fa1680 100644
--- a/gtsam/discrete/tests/testDiscreteValues.cpp
+++ b/gtsam/discrete/tests/testDiscreteValues.cpp
@@ -57,8 +57,8 @@ TEST(DiscreteValues, htmlWithValueFormatter) {
" Variable | value |
\n"
" \n"
" \n"
- " B | '- |
\n"
- " A | 'One |
\n"
+ " B | - |
\n"
+ " A | One |
\n"
" \n"
"
\n"
"
";