Skip to content

v1.7.2-rc6 bug with sphinx role without link #229

@AntoineD

Description

@AntoineD

With v1.7.2-rc6 and the following example that has a :meth: role without link (the ! before X):

class C:
    """CC.

    :meth:`!X`
    """

produces the bad change where a blank space is introduced after the second ::

class C:
    """CC.

    :meth: `!X`
    """

Curiously, this does not happen when the first sentence has only one character!

class C:
    """C.

    :meth:`!X`
    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: styleRelates to docstring format style (e.g., Google, NumPy, Sphinx)P: bugPEP 257 violation or existing functionality that doesn't work as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions