mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
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 <marex@denx.de>
This commit is contained in:
parent
8d5d89e21d
commit
95d45a91d7
@ -2424,6 +2424,9 @@ sub process_file($) {
|
|||||||
# Continued declaration purpose
|
# Continued declaration purpose
|
||||||
chomp($declaration_purpose);
|
chomp($declaration_purpose);
|
||||||
$declaration_purpose .= " " . xml_escape($1);
|
$declaration_purpose .= " " . xml_escape($1);
|
||||||
|
} elsif ($section =~ m/^Example/) {
|
||||||
|
$_ =~ s/^\s*\*//;
|
||||||
|
$contents .= $_;
|
||||||
} else {
|
} else {
|
||||||
$contents .= $1 . "\n";
|
$contents .= $1 . "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user