Skip to content

Commit

Permalink
scripts: get_abi.pl: output users in ReST format
Browse files Browse the repository at this point in the history
Right now, the script only outputs Users on search. Print it
also in ReST format.

Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/83def2a692c4c678f21ee6e76b66a54d2be1e796.1604042072.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
mchehab authored and gregkh committed Oct 30, 2020
1 parent c7ba333 commit a16ab14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/get_abi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,14 @@ sub output_rest {
print "- :ref:`$content <$label>`\n\n";
}
}

if (defined($data{$what}->{users})) {
my $users = $data{$what}->{users};

$users =~ s/\n/\n\t/g;
printf "Users:\n\t%s\n\n", $users if ($users ne "");
}

}
}

Expand Down

0 comments on commit a16ab14

Please sign in to comment.