projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kerneldoc: Implement "Example" section handling
[platform/kernel/u-boot.git]
/
tools
/
kernel-doc
/
kernel-doc
diff --git
a/tools/kernel-doc/kernel-doc
b/tools/kernel-doc/kernel-doc
index
8848efd
..
6347418
100755
(executable)
--- a/
tools/kernel-doc/kernel-doc
+++ b/
tools/kernel-doc/kernel-doc
@@
-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";
}