Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47582
b: refs/heads/master
c: 262086c
h: refs/heads/master
v: v3
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Feb 11, 2007
1 parent d19569b commit 1223d95
Show file tree
Hide file tree
Showing 2 changed files with 34 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: 78137e3b34e122949e6de36a894fb5843664b8f9
refs/heads/master: 262086cf5b5343c2b81c97b1c606058e921859df
37 changes: 33 additions & 4 deletions trunk/Documentation/kernel-doc-nano-HOWTO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,14 @@ The format of the block comment is like this:
* (section header: (section description)? )*
(*)?*/

The short function description cannot be multiline, but the other
descriptions can be (and they can contain blank lines). Avoid putting a
spurious blank line after the function name, or else the description will
be repeated!
The short function description ***cannot be multiline***, but the other
descriptions can be (and they can contain blank lines). If you continue
that initial short description onto a second line, that second line will
appear further down at the beginning of the description section, which is
almost certainly not what you had in mind.

Avoid putting a spurious blank line after the function name, or else the
description will be repeated!

All descriptive text is further processed, scanning for the following special
patterns, which are highlighted appropriately.
Expand All @@ -121,6 +125,31 @@ patterns, which are highlighted appropriately.
'@parameter' - name of a parameter
'%CONST' - name of a constant.

NOTE 1: The multi-line descriptive text you provide does *not* recognize
line breaks, so if you try to format some text nicely, as in:

Return codes
0 - cool
1 - invalid arg
2 - out of memory

this will all run together and produce:

Return codes 0 - cool 1 - invalid arg 2 - out of memory

NOTE 2: If the descriptive text you provide has lines that begin with
some phrase followed by a colon, each of those phrases will be taken as
a new section heading, which means you should similarly try to avoid text
like:

Return codes:
0: cool
1: invalid arg
2: out of memory

every line of which would start a new section. Again, probably not
what you were after.

Take a look around the source tree for examples.


Expand Down

0 comments on commit 1223d95

Please sign in to comment.