summaryrefslogtreecommitdiff
path: root/tools/kernel-doc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/kernel-doc')
-rwxr-xr-xtools/kernel-doc/kernel-doc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/kernel-doc/kernel-doc b/tools/kernel-doc/kernel-doc
index 8848efd..6347418 100755
--- 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";
}