[PATCH] docbook: fix escaping of kernel-doc
From: Martin Waitz
Date: Fri Mar 18 2005 - 06:18:31 EST
hoi :)
the following patch fixes a bug I introduced with the last patches
of the DocBook generation.
Signed-off-by: Martin Waitz <tali@xxxxxxxxxxxxxx>
---
Please apply.
... and I really have to redo my bitkeeper repository as it
is full of merge artifacts as BK did not note the fact that
the patches were applied using normal patches.
I guess I have to use one complete tree per patch and recreate
the public repo as a combination of the individual ones.
Alternatives?
diff -Nru a/scripts/kernel-doc b/scripts/kernel-doc
--- a/scripts/kernel-doc 2005-03-18 11:51:17 +01:00
+++ b/scripts/kernel-doc 2005-03-18 11:51:17 +01:00
@@ -1626,11 +1655,11 @@
# 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($) {
--
Martin Waitz
Attachment:
signature.asc
Description: Digital signature