Skip to content

Commit 186fb5d

Browse files
committed
Trim whitespace in banner
1 parent e25b095 commit 186fb5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_extensions/wordcount/_extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors:
44
orcid: 0000-0003-1866-860X
55
- name: Justin Landis
66
orcid: 0000-0001-5501-4934
7-
version: 1.6.0
7+
version: 1.6.1
88
quarto-required: ">=1.4.551"
99
contributes:
1010
shortcodes:

_extensions/wordcount/banner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
statusDiv.role = 'alert';
66

77
// Add the content of params$wordcount to the status div
8-
statusDiv.innerHTML = '<i class="bi bi-bar-chart-fill"></i>&ensp;`r params$wordcount`';
8+
statusDiv.innerHTML = '<i class="bi bi-bar-chart-fill"></i>&ensp;`r trimws(params$wordcount)`';
99

1010
// Create a <header class="fixed-top"> element to hold the status div
1111
var header = document.createElement('header');

0 commit comments

Comments
 (0)