From: Julien Déramond Date: Tue, 1 Jul 2025 20:58:50 +0000 (+0200) Subject: Fix typo in `JsDocs` and `ScssDocs` shortcodes comments X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d12ff7b3b76a56c67cbc658e908907be7c872fa;p=thirdparty%2Fbootstrap.git Fix typo in `JsDocs` and `ScssDocs` shortcodes comments --- diff --git a/site/src/components/shortcodes/JsDocs.astro b/site/src/components/shortcodes/JsDocs.astro index cf756af8c7..4430f21f88 100644 --- a/site/src/components/shortcodes/JsDocs.astro +++ b/site/src/components/shortcodes/JsDocs.astro @@ -40,7 +40,7 @@ try { content = matches[1] - // Fix the identation by removing extra spaces at the beginning of each line + // Fix the indentation by removing extra spaces at the beginning of each line const lines = content.split('\n') const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length) const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0 diff --git a/site/src/components/shortcodes/ScssDocs.astro b/site/src/components/shortcodes/ScssDocs.astro index 6c267570eb..4eaa8ca01f 100644 --- a/site/src/components/shortcodes/ScssDocs.astro +++ b/site/src/components/shortcodes/ScssDocs.astro @@ -42,7 +42,7 @@ try { content = matches[1].replaceAll(' !default', '') - // Fix the identation by removing extra spaces at the beginning of each line + // Fix the indentation by removing extra spaces at the beginning of each line const lines = content.split('\n') const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length) const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0