Skip to content

manpages builder uses bold for entire options #10259

Open
@CendioOssman

Description

@CendioOssman

Describe the bug

Unfortunately the manpages writer doesn't follow the conventions of man pages when it generates the output for .. option:: directives. It makes the entire line bold, not just the literal parts.

How to Reproduce

Run this through the manpages builder:

.. option:: -p PROJECT, --project=PROJECT
   Project name will be set.

You'll get:

.B \-p PROJECT, \-\-project=PROJECT
Project name will be set.

Expected behavior

\fB\-p\fR \fIPROJECT\fR, \fB\-\-project\fR=\fIPROJECT\fR
Project name will be set.

Your project

N/A

Screenshots

No response

OS

Linux

Python version

3.6.12

Sphinx version

4.2.0

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions