summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2005-03-17 16:01:17 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-17 16:01:17 -0800
commit227da3edcee43e6b1032f129835cf4a74df9f10a (patch)
treef8106c27cc3267834a53420566dd980fdcab6f51 /scripts
parenta3147aa8b2e611373a3605a0cf41aea94a26badd (diff)
[PATCH] docbook: fix escaping of kernel-doc
This fixes a bug I introduced with the last patches of the DocBook generation. Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 05f9f48e00a6..8b1dab63f11c 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1626,11 +1626,11 @@ sub process_state3_type($$) {
# replace <, >, and &
sub xml_escape($) {
- shift;
- s/\&/\\\\\\amp;/g;
- s/\</\\\\\\lt;/g;
- s/\>/\\\\\\gt;/g;
- return $_;
+ my $text = shift;
+ $text =~ s/\&/\\\\\\amp;/g;
+ $text =~ s/\</\\\\\\lt;/g;
+ $text =~ s/\>/\\\\\\gt;/g;
+ return $text;
}
sub process_file($) {