Commit 95d45a91 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini

kerneldoc: Implement "Example" section handling

The default kernel-doc strips starting spaces from every single
line in the Example section. This makes the code look bad. Thus,
implement special handling for this section.
Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
parent 8d5d89e2
......@@ -2424,6 +2424,9 @@ sub process_file($) {
# Continued declaration purpose
chomp($declaration_purpose);
$declaration_purpose .= " " . xml_escape($1);
} elsif ($section =~ m/^Example/) {
$_ =~ s/^\s*\*//;
$contents .= $_;
} else {
$contents .= $1 . "\n";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment