mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
test1275.pl: ignore indented sections in markdowns
They are special and should not be checked like this. Closes #21191
This commit is contained in:
parent
0805ec043e
commit
4f3a0ef90d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user