summaryrefslogtreecommitdiff
path: root/autodoc.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-01 08:49:07 -0600
committerKarl Williamson <khw@cpan.org>2022-05-03 08:42:59 -0600
commit6e93196a2777ee927403982ff2aa30e23617fead (patch)
tree5cd51f79ea680ef77beae080bab7d97f06c2fd41 /autodoc.pl
parentd32aa8f7d4fb45b81aa540ba1f1070b3a1a65f5f (diff)
downloadperl-6e93196a2777ee927403982ff2aa30e23617fead.tar.gz
autodoc: Don't require space after =apidoc_item
The flags column is optional, and so no space is needed to delimit it.
Diffstat (limited to 'autodoc.pl')
-rw-r--r--autodoc.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/autodoc.pl b/autodoc.pl
index 8fef2e3838..fa10dff044 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -366,8 +366,9 @@ sub check_api_doc_line ($$) {
&& length $2 > 0
&& length $3 == 0
&& length $4 > 0
- && length $6 > 0
- && length $7 > 0;
+ && length $7 > 0
+ && ( length $6 > 0
+ || ($is_item && substr($7, 0, 1) eq '|'));
my $proto_in_file = $7;
my $proto = $proto_in_file;
$proto = "||$proto" if $proto !~ /\|/;