summaryrefslogtreecommitdiff
path: root/docutils/test
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-11-03 10:13:03 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-11-03 10:13:03 +0000
commitf26c0c86a9cdc2b1406c88839d81c937d5d0d65d (patch)
tree35c0edad3da5dfb9b62b524a13188da718e29161 /docutils/test
parentedd50fb06a0c517cb38692deb9a2a827a04d292d (diff)
downloaddocutils-f26c0c86a9cdc2b1406c88839d81c937d5d0d65d.tar.gz
test_manpage: add docinfo to man header
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9205 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
-rw-r--r--docutils/test/test_writers/test_manpage.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/docutils/test/test_writers/test_manpage.py b/docutils/test/test_writers/test_manpage.py
index 445a1c83d..cdd207550 100644
--- a/docutils/test/test_writers/test_manpage.py
+++ b/docutils/test/test_writers/test_manpage.py
@@ -451,6 +451,34 @@ They are \(dqescaped\(dq anywhere.
"""],
]
+totest['man_header'] = [
+ ["""
+============
+ page title
+============
+
+in short
+--------
+
+:Manual section: 3
+:Manual group: the books
+:Version: 0.0
+:Date: 3/Nov/2022
+
+Test title, docinfo to man page header.
+""",
+ r""".\" Man page generated from reStructuredText.
+.
+""" + indend_macros + r""".TH "PAGE TITLE" 3 "3/Nov/2022" "0.0" "the books"
+.SH NAME
+page title \- in short
+.sp
+Test title, docinfo to man page header.
+.\" Generated by docutils manpage writer.
+.
+"""],
+ ]
+
if __name__ == '__main__':
import unittest