diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-06-25 08:49:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:23 -0400 |
commit | ecfb251a95dfca6ca0dba63414e9c91fcbb92335 (patch) | |
tree | c965b6d557faf873d5df0eacb79597aab6d4858d | |
parent | cc44a817f65f9b4651643d334f6351b6d1f5e6c2 (diff) |
[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 <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rwxr-xr-x | scripts/kernel-doc | 3 |
1 files changed, 3 insertions, 0 deletions
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($$) { | |||
1674 | # replace <, >, and & | 1674 | # replace <, >, and & |
1675 | sub xml_escape($) { | 1675 | sub xml_escape($) { |
1676 | my $text = shift; | 1676 | my $text = shift; |
1677 | if (($output_mode eq "text") || ($output_mode eq "man")) { | ||
1678 | return $text; | ||
1679 | } | ||
1677 | $text =~ s/\&/\\\\\\amp;/g; | 1680 | $text =~ s/\&/\\\\\\amp;/g; |
1678 | $text =~ s/\</\\\\\\lt;/g; | 1681 | $text =~ s/\</\\\\\\lt;/g; |
1679 | $text =~ s/\>/\\\\\\gt;/g; | 1682 | $text =~ s/\>/\\\\\\gt;/g; |