mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03: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
1 changed files with 5 additions and 0 deletions
|
|
@ -71,6 +71,11 @@ sub checkfile {
|
||||||
$metadata = 0;
|
$metadata = 0;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
if($line =~ /^ /) {
|
||||||
|
# leading 4-space; reset previous-line context and skip checks
|
||||||
|
$prevl = '';
|
||||||
|
next;
|
||||||
|
}
|
||||||
if($line =~ /^(\`\`\`|\~\~\~)/) {
|
if($line =~ /^(\`\`\`|\~\~\~)/) {
|
||||||
# start or stop ignore-mode
|
# start or stop ignore-mode
|
||||||
$ignore ^= 1;
|
$ignore ^= 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue