mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
man page xref: verify page title
Issue #15923 should have never happened: the problem should've been autodetected. Make it so henceforth (and fix another existing discrepancy) Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
% podman-machine-ls 1
|
||||
% podman-machine-list 1
|
||||
|
||||
## NAME
|
||||
podman\-machine\-list - List virtual machines
|
||||
|
@ -292,6 +292,15 @@ sub podman_man {
|
||||
chomp $line;
|
||||
next unless $line; # skip empty lines
|
||||
|
||||
# First line (page title) must match the command name.
|
||||
if ($line =~ /^%\s+/) {
|
||||
my $expect = "% $command 1";
|
||||
if ($line ne $expect) {
|
||||
warn "$ME: $subpath:$.: wrong title line '$line'; should be '$expect'\n";
|
||||
++$Errs;
|
||||
}
|
||||
}
|
||||
|
||||
# .md files designate sections with leading double hash
|
||||
if ($line =~ /^##\s*(GLOBAL\s+)?OPTIONS/) {
|
||||
$section = 'flags';
|
||||
|
Reference in New Issue
Block a user