diff options
-rwxr-xr-x | scripts/kernel-doc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index bc5ef02260ce..62bf9fe50677 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -553,15 +553,20 @@ sub output_section_xml(%) { | |||
553 | # print out each section | 553 | # print out each section |
554 | $lineprefix=" "; | 554 | $lineprefix=" "; |
555 | foreach $section (@{$args{'sectionlist'}}) { | 555 | foreach $section (@{$args{'sectionlist'}}) { |
556 | print "<refsect1>\n <title>$section</title>\n <para>\n"; | 556 | print "<refsect1>\n"; |
557 | print "<title>$section</title>\n"; | ||
557 | if ($section =~ m/EXAMPLE/i) { | 558 | if ($section =~ m/EXAMPLE/i) { |
558 | print "<example><para>\n"; | 559 | print "<informalexample><programlisting>\n"; |
560 | } else { | ||
561 | print "<para>\n"; | ||
559 | } | 562 | } |
560 | output_highlight($args{'sections'}{$section}); | 563 | output_highlight($args{'sections'}{$section}); |
561 | if ($section =~ m/EXAMPLE/i) { | 564 | if ($section =~ m/EXAMPLE/i) { |
562 | print "</para></example>\n"; | 565 | print "</programlisting></informalexample>\n"; |
566 | } else { | ||
567 | print "</para>\n"; | ||
563 | } | 568 | } |
564 | print " </para>\n</refsect1>\n"; | 569 | print "</refsect1>\n"; |
565 | } | 570 | } |
566 | } | 571 | } |
567 | 572 | ||