From 186fb5de79f23a558935f981be47980046d8398b Mon Sep 17 00:00:00 2001 From: Andrew Heiss Date: Tue, 5 Nov 2024 01:21:48 -0500 Subject: [PATCH] Trim whitespace in banner --- _extensions/wordcount/_extension.yml | 2 +- _extensions/wordcount/banner.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_extensions/wordcount/_extension.yml b/_extensions/wordcount/_extension.yml index 0b9f353..3d0ff38 100644 --- a/_extensions/wordcount/_extension.yml +++ b/_extensions/wordcount/_extension.yml @@ -4,7 +4,7 @@ authors: orcid: 0000-0003-1866-860X - name: Justin Landis orcid: 0000-0001-5501-4934 -version: 1.6.0 +version: 1.6.1 quarto-required: ">=1.4.551" contributes: shortcodes: diff --git a/_extensions/wordcount/banner.html b/_extensions/wordcount/banner.html index 9af99b8..759c981 100644 --- a/_extensions/wordcount/banner.html +++ b/_extensions/wordcount/banner.html @@ -5,7 +5,7 @@ statusDiv.role = 'alert'; // Add the content of params$wordcount to the status div -statusDiv.innerHTML = ' `r params$wordcount`'; +statusDiv.innerHTML = ' `r trimws(params$wordcount)`'; // Create a
element to hold the status div var header = document.createElement('header');