diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-02-17 11:26:25 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-02-17 11:26:25 +0000 |
| commit | fc41f7776c1705cee10023a9f410b394af0e7267 (patch) | |
| tree | 06423316d1a8777ba7247130689a686a38fa45ff /docutils | |
| parent | f724b2eebef922d439629f52777e9eec0fa3d22c (diff) | |
| download | docutils-fc41f7776c1705cee10023a9f410b394af0e7267.tar.gz | |
[ Fix #380 ] manpage commandline option problem in sphinx.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8492 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/HISTORY.txt | 4 | ||||
| -rw-r--r-- | docutils/docutils/writers/manpage.py | 2 | ||||
| -rw-r--r-- | docutils/test/functional/expected/standalone_rst_manpage.man | 4 | ||||
| -rw-r--r-- | docutils/test/test_writers/test_manpage.py | 6 |
4 files changed, 10 insertions, 6 deletions
diff --git a/docutils/HISTORY.txt b/docutils/HISTORY.txt index 5adbfd60a..b2aa12ca1 100644 --- a/docutils/HISTORY.txt +++ b/docutils/HISTORY.txt @@ -61,6 +61,10 @@ Changes Since 0.16 __ docs/user/latex.html#classes +* docutils/writers/manpage.py + + - [ Fix #380 ] commandline option problem in sphinx. + .. _pip: https://pypi.org/project/pip/ .. _legacy_class_functions: docs/user/config.html#legacy-class-functions diff --git a/docutils/docutils/writers/manpage.py b/docutils/docutils/writers/manpage.py index cd7bf73b0..035a479ca 100644 --- a/docutils/docutils/writers/manpage.py +++ b/docutils/docutils/writers/manpage.py @@ -900,7 +900,7 @@ class Translator(nodes.NodeVisitor): # options with parameter bold italic, .BI, -f file # # we do not know if .B or .BI - self.context.append('.B') # blind guess + self.context.append('.B ') # blind guess. Add blank for spinx see docutils/bugs/380 self.context.append(len(self.body)) # to be able to insert later self.context.append(0) # option counter diff --git a/docutils/test/functional/expected/standalone_rst_manpage.man b/docutils/test/functional/expected/standalone_rst_manpage.man index fbc9272eb..4bf8d28c3 100644 --- a/docutils/test/functional/expected/standalone_rst_manpage.man +++ b/docutils/test/functional/expected/standalone_rst_manpage.man @@ -67,10 +67,10 @@ docinfo, see this document as an example. .BI \-\-config\fB= <file> Read configuration settings from <file>, if it exists. .TP -.B \-\-version\fP,\fB \-V +.B \-\-version\fP,\fB \-V Show this program\(aqs version number and exit. .TP -.B \-\-help\fP,\fB \-h +.B \-\-help\fP,\fB \-h Show this help message and exit. .UNINDENT .sp diff --git a/docutils/test/test_writers/test_manpage.py b/docutils/test/test_writers/test_manpage.py index f0adec7e8..53b42cc6f 100644 --- a/docutils/test/test_writers/test_manpage.py +++ b/docutils/test/test_writers/test_manpage.py @@ -171,10 +171,10 @@ General rule of life. .BI \-\-config\fB= <file> Read configuration settings from <file>, if it exists. .TP -.B \-\-version\fP,\fB \-V +.B \-\-version\fP,\fB \-V Show this program\(aqs version number and exit. .TP -.B \-\-help\fP,\fB \-h +.B \-\-help\fP,\fB \-h Show this help message and exit. .UNINDENT .SH OTHER SECTION @@ -381,7 +381,7 @@ r""".INDENT 0.0 .B optional arguments: .INDENT 7.0 .TP -.B \-h\fP,\fB \-\-help +.B \-h\fP,\fB \-\-help show this help .TP .BI \-\-output \ FILE\fR,\fB \ \-o \ FILE |
