mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
[CI:DOCS] consistentize filter options in man pages
Some --filter descriptions listed the filters with asterisks, i.e. markdown italics. There were 60+ of those, 250+ without asterisks, so I choose to de-asterisk them all. Update the xref script to remove the allow-asterisk exception. (Except for the column title, which is sometimes written with two asterisks--boldface--and sometimes plain). Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -670,17 +670,13 @@ sub podman_man {
|
||||
if ($line =~ /^\|\s+(\S+)\s+\|/) {
|
||||
my $filter = $1;
|
||||
|
||||
# Special-case transformation: some man pages use
|
||||
# asterisks, "*foo*", some don't. Ignore asterisks.
|
||||
$filter =~ tr/\*//d;
|
||||
|
||||
# (Garbage: these are just table column titles & dividers)
|
||||
next LINE if $filter eq 'Filter';
|
||||
next LINE if $filter =~ /^\**Filter\**$/;
|
||||
next LINE if $filter =~ /---+/;
|
||||
|
||||
# Another special case: treat slash-separated options
|
||||
# ("after/since") as identical, and require that each
|
||||
# be documented.
|
||||
# Special case: treat slash-separated options
|
||||
# ("after/since") as identical, and require that
|
||||
# each be documented.
|
||||
for my $f (split '/', $filter) {
|
||||
# Special case for negated options ("label!="): allow,
|
||||
# but only immediately after the positive case.
|
||||
|
Reference in New Issue
Block a user