From: Randy Dunlap Date: Sun, 25 Jun 2006 12:49:13 +0000 (-0700) Subject: [PATCH] kernel-doc: don't use XML escapes in text or man output mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ecfb251a95dfca6ca0dba63414e9c91fcbb92335;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] kernel-doc: don't use XML escapes in text or man output mode For kernel-doc output modes of text and man, do not use XML escapes for less-than, greater-than, and ampersand characters. I.e., leave the text and man output clean and readable. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 351def5c6b8f..8bf1e54f14e0 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1674,6 +1674,9 @@ sub process_state3_type($$) { # replace <, >, and & sub xml_escape($) { my $text = shift; + if (($output_mode eq "text") || ($output_mode eq "man")) { + return $text; + } $text =~ s/\&/\\\\\\amp;/g; $text =~ s/\/\\\\\\gt;/g;