Skip to content

Commit be49696

Browse files
committed
[check] Detect 'shall', 'may', and 'should' inside footnotes.
1 parent cabd788 commit be49696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ grep -n '^\\rSec.\[[^]]*[^-a-z.0-9][^]]*\]{' $texfiles | sed 's/$/ <--- bad char
8888

8989
# "shall", "may", or "should" inside a note
9090
for f in $texfiles; do
91-
sed -n '/begin{note}/,/end{note}/{/\(shall\|may\|should\)[^a-zA-Z]/{=;p}}' $f |
91+
sed -n '/begin{\(note\|footnote\)}/,/end{\(note\|footnote\)}/{/\(shall\|may\|should\)[^a-zA-Z]/{=;p}}' $f |
9292
# prefix output with filename and line
9393
sed '/^[0-9]\+$/{N;s/\n/:/}' | sed "s/.*/$f:&/" |
9494
sed 's/$/ <--- "shall", "should", or "may" inside a note/'

0 commit comments

Comments
 (0)