Fix single quotes

release/4.3a0
Frank Dellaert 2022-01-09 17:00:41 -05:00
parent fa5ead6246
commit 3851a98517
4 changed files with 6 additions and 6 deletions

View File

@ -226,7 +226,7 @@ namespace gtsam {
stringstream ss;
// Print out preamble.
ss << "<div>\n<table class=\'DecisionTreeFactor\'>\n <thead>\n";
ss << "<div>\n<table class='DecisionTreeFactor'>\n <thead>\n";
// Print out header row.
ss << " <tr>";

View File

@ -396,7 +396,7 @@ string DiscreteConditional::html(const KeyFormatter& keyFormatter,
}
// Print out preamble.
ss << "<table class=\'DiscreteConditional\'>\n <thead>\n";
ss << "<table class='DiscreteConditional'>\n <thead>\n";
// Print out header row.
ss << " <tr>";

View File

@ -65,7 +65,7 @@ string DiscreteValues::html(const KeyFormatter& keyFormatter,
stringstream ss;
// Print out preamble.
ss << "<div>\n<table class=\'DiscreteValues\'>\n <thead>\n";
ss << "<div>\n<table class='DiscreteValues'>\n <thead>\n";
// Print out header row.
ss << " <tr><th>Variable</th><th>value</th></tr>\n";
@ -76,7 +76,7 @@ string DiscreteValues::html(const KeyFormatter& keyFormatter,
// Print out all rows.
for (const auto& kv : *this) {
ss << " <tr>";
ss << "<th>" << keyFormatter(kv.first) << "</th><td>\'"
ss << "<th>" << keyFormatter(kv.first) << "</th><td>"
<< Translate(names, kv.first, kv.second) << "</td>";
ss << "</tr>\n";
}

View File

@ -57,8 +57,8 @@ TEST(DiscreteValues, htmlWithValueFormatter) {
" <tr><th>Variable</th><th>value</th></tr>\n"
" </thead>\n"
" <tbody>\n"
" <tr><th>B</th><td>'-</td></tr>\n"
" <tr><th>A</th><td>'One</td></tr>\n"
" <tr><th>B</th><td>-</td></tr>\n"
" <tr><th>A</th><td>One</td></tr>\n"
" </tbody>\n"
"</table>\n"
"</div>";