diff options
author | Rich Salz <rsalz@openssl.org> | 2017-05-25 14:16:26 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-29 19:17:40 -0400 |
commit | 2bcb232ebeb155c6f1241deb84a26ab23176f866 (patch) | |
tree | 3ed6d703ea7cc1d94b7b6ba3235bc5fb469a26e3 /util | |
parent | e92947d8d93e3623ae9185920f991c3e4d65f77a (diff) |
Add stricter checking in NAME section
Require a comma between every name and a single space before the dash
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3559)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index 63698801d7..11acee1a20 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -60,7 +60,9 @@ sub name_synopsis() my $tmp = $1; $tmp =~ tr/\n/ /; print "$id trailing comma before - in NAME\n" if $tmp =~ /, *-/; - $tmp =~ s/-.*//g; + $tmp =~ s/ -.*//g; + $tmp =~ s/ */ /g; + print "$id missing comma in NAME\n" if $tmp =~ /[^,] /; $tmp =~ s/,//g; my $dirname = dirname($filename); |