Skip to content

Commit 67f6717

Browse files
committed
Ignore all whitespace from text element when making comparisons in 200-flexdashboard-render-text
1 parent c675e0d commit 67f6717

File tree

1 file changed

+1
-1
lines changed
  • inst/apps/200-flexdashboard-render-text

1 file changed

+1
-1
lines changed

inst/apps/200-flexdashboard-render-text/index.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ shinyjster::shinyjster_js("
4343
jst.add(function() {
4444
var el = $(qs);
4545
Jster.assert.isEqual(
46-
el.text().trim(),
46+
el.text().replace(/\s+/g, ''),
4747
txt,
4848
{query_string: qs, element: el}
4949
);

0 commit comments

Comments
 (0)