mirror of
https://github.com/containers/podman.git
synced 2025-10-15 02:06:42 +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
|
## NAME
|
||||||
podman\-machine\-list - List virtual machines
|
podman\-machine\-list - List virtual machines
|
||||||
|
@ -292,6 +292,15 @@ sub podman_man {
|
|||||||
chomp $line;
|
chomp $line;
|
||||||
next unless $line; # skip empty lines
|
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
|
# .md files designate sections with leading double hash
|
||||||
if ($line =~ /^##\s*(GLOBAL\s+)?OPTIONS/) {
|
if ($line =~ /^##\s*(GLOBAL\s+)?OPTIONS/) {
|
||||||
$section = 'flags';
|
$section = 'flags';
|
||||||
|
Reference in New Issue
Block a user