[PATCH] kernel-doc: don't use XML escapes in text or man output mode
Changes
1 files changed · +3 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| scripts/kernel-doc | modified | +3 | −0 | View file |
scripts/kernel-doc
View filediff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 351def5..8bf1e54 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/\</\\\\\\lt;/g;
$text =~ s/\>/\\\\\\gt;/g;