Skip to content

Commit d5c1265

Browse files
AAriamdrammock
andauthored
Strip whitespace from announcement file before processing. (#2105)
Closes #2102 Co-authored-by: Daniel McCloy <[email protected]>
1 parent 77621fb commit d5c1265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ async function setupAnnouncementBanner() {
963963
);
964964
}
965965
const data = await response.text();
966+
data = data.trim();
966967
if (data.length === 0) {
967968
console.log(`[PST]: Empty announcement at: ${pstAnnouncementUrl}`);
968969
return;

0 commit comments

Comments
 (0)