Commit c73894c1e1160296552d8713e88bc76eac43beba
Committed by
Linus Torvalds
1 parent
67be2dd1ba
Exists in
master
and in
20 other branches
[PATCH] DocBook: use <informalexample> for examples
Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 9 additions and 4 deletions Side-by-side Diff
scripts/kernel-doc
... | ... | @@ -553,15 +553,20 @@ |
553 | 553 | # print out each section |
554 | 554 | $lineprefix=" "; |
555 | 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 | 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 | 563 | output_highlight($args{'sections'}{$section}); |
561 | 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 |