test1275.pl: ignore indented sections in markdowns

They are special and should not be checked like this.

Closes #21191
This commit is contained in:
Daniel Stenberg 2026-04-01 11:59:44 +02:00
parent 0805ec043e
commit 4f3a0ef90d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -71,6 +71,11 @@ sub checkfile {
$metadata = 0;
next;
}
if($line =~ /^ /) {
# leading 4-space; reset previous-line context and skip checks
$prevl = '';
next;
}
if($line =~ /^(\`\`\`|\~\~\~)/) {
# start or stop ignore-mode
$ignore ^= 1;