diff options
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 1d1401807e95..e4fa8d9568ba 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -182,10 +182,10 @@ my $blankline_html = $local_lt . "p" . $local_gt; # was "<p>" | |||
182 | my %highlights_xml = ( "([^=])\\\"([^\\\"<]+)\\\"", "\$1<quote>\$2</quote>", | 182 | my %highlights_xml = ( "([^=])\\\"([^\\\"<]+)\\\"", "\$1<quote>\$2</quote>", |
183 | $type_constant, "<constant>\$1</constant>", | 183 | $type_constant, "<constant>\$1</constant>", |
184 | $type_func, "<function>\$1</function>", | 184 | $type_func, "<function>\$1</function>", |
185 | $type_struct, "<structname>\$1</structname>", | 185 | $type_struct_xml, "<structname>\$1</structname>", |
186 | $type_env, "<envar>\$1</envar>", | 186 | $type_env, "<envar>\$1</envar>", |
187 | $type_param, "<parameter>\$1</parameter>" ); | 187 | $type_param, "<parameter>\$1</parameter>" ); |
188 | my $blankline_xml = "</para><para>\n"; | 188 | my $blankline_xml = $local_lt . "/para" . $local_gt . $local_lt . "para" . $local_gt . "\n"; |
189 | 189 | ||
190 | # gnome, docbook format | 190 | # gnome, docbook format |
191 | my %highlights_gnome = ( $type_constant, "<replaceable class=\"option\">\$1</replaceable>", | 191 | my %highlights_gnome = ( $type_constant, "<replaceable class=\"option\">\$1</replaceable>", |
@@ -394,7 +394,7 @@ sub output_highlight { | |||
394 | # confess "output_highlight got called with no args?\n"; | 394 | # confess "output_highlight got called with no args?\n"; |
395 | # } | 395 | # } |
396 | 396 | ||
397 | if ($output_mode eq "html") { | 397 | if ($output_mode eq "html" || $output_mode eq "xml") { |
398 | $contents = local_unescape($contents); | 398 | $contents = local_unescape($contents); |
399 | # convert data read & converted thru xml_escape() into &xyz; format: | 399 | # convert data read & converted thru xml_escape() into &xyz; format: |
400 | $contents =~ s/\\\\\\/&/g; | 400 | $contents =~ s/\\\\\\/&/g; |