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.
Unified · Split
| @@ -1674,6 +1674,9 @@ sub process_state3_type($$) { · 1673 unmodified lines | ||
| 1674 | 1674 | # replace <, >, and & |
| 1675 | 1675 | sub xml_escape($) { |
| 1676 | 1676 | my $text = shift; |
| 1677 | + if (($output_mode eq "text") || ($output_mode eq "man")) { | |
| 1678 | + return $text; | |
| 1679 | + } | |
| 1677 | 1680 | $text =~ s/\&/\\\\\\amp;/g; |
| 1678 | 1681 | $text =~ s/\</\\\\\\lt;/g; |
| 1679 | 1682 | $text =~ s/\>/\\\\\\gt;/g; |