PyCQA / docformatter

Formats docstrings to follow PEP 257
https://pypi.python.org/pypi/docformatter
MIT License
530 stars 61 forks source link

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

Closed AntoineD closed 1 year ago

AntoineD commented 1 year ago

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`
    """
weibullguy commented 1 year ago

@AntoineD should be fixed in v1.7.2-rc7.

AntoineD commented 1 year ago

Thank you.