Re: [PATCH 15/16] [DocBook] factor out escaping of XML special characters

From: Martin Waitz
Date: Sun Mar 06 2005 - 03:10:12 EST


hoi :)

well, this patch is broken :(

On Thu, Mar 03, 2005 at 11:43:17AM +0100, Martin Waitz wrote:
> --- a/scripts/kernel-doc Thu Mar 3 11:43:21 2005
> +++ b/scripts/kernel-doc Thu Mar 3 11:43:21 2005
> @@ -1624,6 +1624,15 @@
> }
> }
>
> +# replace <, >, and &
> +sub xml_escape($) {
> + shift;

this must be: $_ = shift;

> + s/\&/\\\\\\amp;/g;
> + s/\</\\\\\\lt;/g;
> + s/\>/\\\\\\gt;/g;
> + return $_;
> +}
> +
> sub process_file($) {
> my ($file) = "$ENV{'SRCTREE'}@_";
> my $identifier;


this is also fixed in my BK repository.
(I'll send mail with other updates to lkml later)

--
Martin Waitz

Attachment: signature.asc
Description: Digital signature