diff options
Diffstat (limited to 'tests/scripts')
| -rw-r--r-- | tests/scripts/webdocs.sh | 4 |
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" |
