Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222207
b: refs/heads/master
c: 2b35f4d
h: refs/heads/master
i:
  222205: 25702ff
  222203: e2ff911
  222199: 5782337
  222191: 126e8aa
  222175: 0cf310e
  222143: 2aec1e2
  222079: 980edf5
  221951: 2e74198
  221695: b5656fa
  221183: 38fc392
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Nov 18, 2010
1 parent 08902f1 commit e641917
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2811036a19624168ff9342bb85421dbbb1d2ac0d
refs/heads/master: 2b35f4d9cab365d37c7b34ce51e1c1144c312d05
12 changes: 9 additions & 3 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use strict;
## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
## Copyright (C) 2001 Simon Huggins ##
## Copyright (C) 2005-2009 Randy Dunlap ##
## Copyright (C) 2005-2010 Randy Dunlap ##
## ##
## #define enhancements by Armin Kuster <akuster@mvista.com> ##
## Copyright (c) 2000 MontaVista Software, Inc. ##
Expand Down Expand Up @@ -453,7 +453,7 @@ sub output_highlight {
if ($output_mode eq "html" || $output_mode eq "xml") {
$contents = local_unescape($contents);
# convert data read & converted thru xml_escape() into &xyz; format:
$contents =~ s/\\\\\\/&/g;
$contents =~ s/\\\\\\/\&/g;
}
# print STDERR "contents b4:$contents\n";
eval $dohighlight;
Expand Down Expand Up @@ -770,7 +770,11 @@ sub output_struct_xml(%) {
print $args{'type'} . " " . $args{'struct'} . " {\n";
foreach $parameter (@{$args{'parameterlist'}}) {
if ($parameter =~ /^#/) {
print "$parameter\n";
my $prm = $parameter;
# convert data read & converted thru xml_escape() into &xyz; format:
# This allows us to have #define macros interspersed in a struct.
$prm =~ s/\\\\\\/\&/g;
print "$prm\n";
next;
}

Expand Down Expand Up @@ -1701,6 +1705,8 @@ sub push_parameter($$$) {
}
}

$param = xml_escape($param);

# strip spaces from $param so that it is one continous string
# on @parameterlist;
# this fixes a problem where check_sections() cannot find
Expand Down

0 comments on commit e641917

Please sign in to comment.