* [PATCH] kernel-doc: don't use XML escapes in text or man output mode
@ 2006-06-19 18:07 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-06-19 18:07 UTC (permalink / raw)
To: lkml; +Cc: tali, akpm
From: Randy Dunlap <rdunlap@xenotime.net>
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>
---
scripts/kernel-doc | 3 +++
1 files changed, 3 insertions(+)
--- linux-2617-pv.orig/scripts/kernel-doc
+++ linux-2617-pv/scripts/kernel-doc
@@ -1673,6 +1673,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;
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-19 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 18:07 [PATCH] kernel-doc: don't use XML escapes in text or man output mode Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®