Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 782
b: refs/heads/master
c: c73894c
h: refs/heads/master
v: v3
  • Loading branch information
Rich Walker authored and Linus Torvalds committed May 1, 2005
1 parent 9ce9bb0 commit 26fd42f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 67be2dd1bace0ec7ce2dbc1bba3f8df3d7be597e
refs/heads/master: c73894c1e1160296552d8713e88bc76eac43beba
13 changes: 9 additions & 4 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,20 @@ sub output_section_xml(%) {
# print out each section
$lineprefix=" ";
foreach $section (@{$args{'sectionlist'}}) {
print "<refsect1>\n <title>$section</title>\n <para>\n";
print "<refsect1>\n";
print "<title>$section</title>\n";
if ($section =~ m/EXAMPLE/i) {
print "<example><para>\n";
print "<informalexample><programlisting>\n";
} else {
print "<para>\n";
}
output_highlight($args{'sections'}{$section});
if ($section =~ m/EXAMPLE/i) {
print "</para></example>\n";
print "</programlisting></informalexample>\n";
} else {
print "</para>\n";
}
print " </para>\n</refsect1>\n";
print "</refsect1>\n";
}
}

Expand Down

0 comments on commit 26fd42f

Please sign in to comment.