Skip to content

Commit

Permalink
Ignore all whitespace from text element when making comparisons in 20…
Browse files Browse the repository at this point in the history
…0-flexdashboard-render-text
  • Loading branch information
cpsievert committed Dec 13, 2024
1 parent c675e0d commit 67f6717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/apps/200-flexdashboard-render-text/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ shinyjster::shinyjster_js("
jst.add(function() {
var el = $(qs);
Jster.assert.isEqual(
el.text().trim(),
el.text().replace(/\s+/g, ''),
txt,
{query_string: qs, element: el}
);
Expand Down

0 comments on commit 67f6717

Please sign in to comment.