3
# $Id: test_latex2e.py 6003 2009-06-27 20:44:09Z milde $
4
# Author: engelbert gruber <grubert@users.sourceforge.net>
5
# Copyright: This module has been placed in the public domain.
8
Tests for manpage writer.
11
from __init__ import DocutilsTestSupport
13
from docutils._compat import b
17
s = DocutilsTestSupport.PublishTestSuite('manpage', suite_settings=settings)
18
s.generateTests(totest)
22
.nr rst2man-indent-level 0
26
level \\n[rst2man-indent-level]
27
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
34
.\" .rstReportMargin pre:
36
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
37
. nr rst2man-indent-level +1
38
.\" .rstReportMargin post:
42
.\" indent \\n[an-margin]
43
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
44
.nr rst2man-indent-level -1
45
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
46
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
57
.\" Man page generated from reStructeredText.
59
.\" Generated by docutils manpage writer.
75
:Author: someone@somewhere.net
77
:Copyright: public domain
80
:Manual group: text processing
81
:Arbitrary field: some text
88
K.I.S.S keep it simple.
98
--config=<file> Read configuration settings from <file>, if it exists.
99
--version, -V Show this program's version number and exit.
100
--help, -h Show this help message and exit.
104
r""".\" Man page generated from reStructeredText.
106
.TH SIMPLE 1 "2009-08-05" "0.1" "text processing"
108
simple \- The way to go
114
K.I.S.S keep it simple.
119
General rule of life.
123
.BI \-\-config\fB= <file>
125
Read configuration settings from <file>, if it exists.
129
Show this program\(aqs version number and exit.
133
Show this help message and exit.
136
someone@somewhere.net
138
Arbitrary field: some text
141
.\" Generated by docutils manpage writer.
160
.\\" Man page generated from reStructeredText.
189
.\\" Generated by docutils manpage writer.
195
if __name__ == '__main__':
197
unittest.main(defaultTest='suite')