summaryrefslogtreecommitdiffhomepage
path: root/tests/scripts
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-28 14:16:41 -0600
committerGitHub <noreply@github.com>2026-11-28 14:16:41 -0600
commit95d31d2d7d5fd7de81d6d5e2caedcdc369ca0fcf (patch)
tree4959b8d43268945543be4061b8fccd95d04592b1 /tests/scripts
parent625908ab56c7c554506d61c83c7001bca19a05f6 (diff)
parent6fe2aff8d6611bf45704ba86120efa23950bfa80 (diff)
downloadzash-95d31d2d7d5fd7de81d6d5e2caedcdc369ca0fcf.tar.gz
Merge pull request #46 from skurtz97/fix/review-2026-11-28
Fixes from the 2026-11-28 code review
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/webdocs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scripts/webdocs.sh b/tests/scripts/webdocs.sh
index fc4c14e..ce71193 100644
--- a/tests/scripts/webdocs.sh
+++ b/tests/scripts/webdocs.sh
@@ -31,9 +31,9 @@ for d in README:40:README DESIGN:50:Design; do
fi
# The site has a logo, its own contents list and the title, so the
- # document's must be gone.
+ # document's must be gone. A `#` inside a code block is not a title.
if grep -q 'align="center"' "$page" || grep -q '^## Contents$' "$page" ||
- grep -q '^# ' "$page"; then
+ sed '/^```/,/^```/d' "$page" | grep -q '^# '; then
echo "$name header, contents or title still there WRONG"
else
echo "$name header, contents and title dropped ok"