diff options
| author | Martin Waitz <tali@admingilde.org> | 2005-03-17 16:01:17 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-17 16:01:17 -0800 |
| commit | 227da3edcee43e6b1032f129835cf4a74df9f10a (patch) | |
| tree | f8106c27cc3267834a53420566dd980fdcab6f51 /scripts | |
| parent | a3147aa8b2e611373a3605a0cf41aea94a26badd (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-x | scripts/kernel-doc | 10 |
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($) { |
