Fix single quotes
parent
fa5ead6246
commit
3851a98517
|
|
@ -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>";
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
|
|
|
|||
Loading…
Reference in New Issue