Do not emit comment line with trailng blank
[docutils/kirr.git] / sandbox / manpage-writer / expected / optionslisttest.man
blob548144414b39c55807e6c8e4709a147b97cdcc4b
1 .\" Man page generated from reStructeredText.
3 .TH OPTIONLISTTEST 1 "2008-04-29" "" ""
4 .SH NAME
5 OptionlistTest \- Test for correct intention/detention of option lists
7 .nr rst2man-indent-level 0
9 .de1 rstReportMargin
10 \\$1 \\n[an-margin]
11 level \\n[rst2man-indent-level]
12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
14 \\n[rst2man-indent0]
15 \\n[rst2man-indent1]
16 \\n[rst2man-indent2]
18 .de1 INDENT
19 .\" .rstReportMargin pre:
20 . RS \\$1
21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22 . nr rst2man-indent-level +1
23 .\" .rstReportMargin post:
25 .de UNINDENT
26 . RE
27 .\" indent \\n[an-margin]
28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .nr rst2man-indent-level -1
30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
33 .\" -*- mode: rst -*-
35 .SH DESCRIPTION
36 .sp
37 After an option list:
38 .INDENT 0.0
39 .IP \(bu 2
40 a paragraph within the same section must be intented
41 .IP \(bu 2
42 a section header directly following the list must \fInot\fP be
43 intentend.
44 .UNINDENT
45 .sp
46 This file tests this.
47 .SH OPTIONS
48 .sp
49 This line must be in indented.
50 .INDENT 0.0
51 .TP
52 .BI \-o \ x
53 an option
54 .TP
55 .B \-b
56 another
57 .sp
58 This option does the following points:
59 .INDENT 7.0
60 .IP \(bu 2
61 one point
62 .IP \(bu 2
63 second point
64 .INDENT 2.0
65 .INDENT 3.5
66 .INDENT 0.0
67 .TP
68 .B \-\-ccc
69 option lists may be nested, even if this is rarely
70 used.
71 .UNINDENT
72 .UNINDENT
73 .UNINDENT
74 .UNINDENT
75 .TP
76 .B \-k
77 and even another
78 .sp
79 This option does the following points:
80 .INDENT 7.0
81 .IP \(bu 2
82 one point
83 .IP \(bu 2
84 second point
85 .UNINDENT
86 .UNINDENT
87 .sp
88 For all other options see \fB\-\-help\fP. This line must be intented.
89 .SH MORE OPTIONS
90 .INDENT 0.0
91 .TP
92 .BI \-o \ x
93 an option
94 .TP
95 .B \-b
96 another
97 .UNINDENT
98 .SH EXAMPLES
99 .sp
100 The "Examples" section header must not be intented. But this paragraph
101 is indented, as all text in man\-pages. This is level 0.
102 .INDENT 0.0
103 .IP \(bu 2
104 Now let\(aqs test nested lists.
106 Line indented once. This is level 1.
107 .INDENT 2.0
108 .IP \(bu 2
109 Nested item1.
110 .IP \(bu 2
111 Nested item2.
112 .IP \(bu 2
113 Nested item3.
115 Line for Nested item 3.
116 .IP \(bu 2
117 Nested item4.
118 .UNINDENT
120 Paragraph at level 1. Same level as Line indented once.
121 .UNINDENT
123 This paragraph should be at level 0.
124 .SH EMPHASIZE
125 .INDENT 0.0
127 .B plain text term
128 definition paragraph 1
130 definition paragraph 2
132 .B term with \fIemphasis\fP in it
133 paragraph 1 should not be preceeded by a blank line
135 definition paragraph 2
136 .UNINDENT
137 .SH DEFINITION LIST
138 .INDENT 0.0
140 .B term1
141 Description of Term 1 Description of Term 1 Description of Term 1
142 Description of Term 1 Description of Term 1
144 Description of Term 1 Description of Term 1 Description of Term 1
145 Description of Term 1 Description of Term 1
147 .B term1111111111
148 Description of Term 1 Description of Term 1 Description of Term 1
149 Description of Term 1 Description of Term 1
151 Description of Term 1 Description of Term 1 Description of Term 1
152 Description of Term 1 Description of Term 1
154 .B term2
155 Description of Term 2
156 .INDENT 7.0
157 .INDENT 3.5
158 Description of Term 2 Description of Term 2 Description of Term 2
159 Description of Term 2 Description of Term 2
161 Description of Term 2 Description of Term 2 Description of Term 2
162 Description of Term 2 Description of Term 2
163 .UNINDENT
164 .UNINDENT
165 .INDENT 7.0
167 .B term22
168 Defintions lists may be nested, thus this at level 1.
170 More Description of Term 22. More Description of Term 22.
171 More Description of Term 22. More Description of Term 22.
173 .B term23
174 Defintions lists may be nested, thus this at level 1.
175 .UNINDENT
177 This para is indented to term2, thus should be at level 1.
179 This para is indented to term2, thus should be at level 1.
181 .B term3
182 Defintions lists are not nested
184 More Description for term3.
185 .UNINDENT
187 This paragraph should be at level 0. But the rst\-manpage writer has a
188 bug here. See the option list above.
189 .SH AUTHOR
190 h.goebel@goebel-consult.de
191 .SH COPYRIGHT
192 public domain
193 .\" Generated by docutils manpage writer.