Skip to content

Commit

Permalink
Fix single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Jan 9, 2022
1 parent f76cb6d commit f1f3c04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gtsam/discrete/DecisionTreeFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down
2 changes: 1 addition & 1 deletion gtsam/discrete/DiscreteConditional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down
4 changes: 2 additions & 2 deletions gtsam/discrete/DiscreteValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
}
Expand Down
4 changes: 2 additions & 2 deletions gtsam/discrete/tests/testDiscreteValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down

0 comments on commit f1f3c04

Please sign in to comment.