aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index f5862abe0311..1f5835115cad 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -404,7 +404,11 @@ sub output_highlight {
404 print $lineprefix, $blankline; 404 print $lineprefix, $blankline;
405 } else { 405 } else {
406 $line =~ s/\\\\\\/\&/g; 406 $line =~ s/\\\\\\/\&/g;
407 print $lineprefix, $line; 407 if ($output_mode eq "man" && substr($line, 0, 1) eq ".") {
408 print "\\&$line";
409 } else {
410 print $lineprefix, $line;
411 }
408 } 412 }
409 print "\n"; 413 print "\n";
410 } 414 }