PyCQA / docformatter

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

1.7.2 bug #234

Closed AntoineD closed 1 year ago

AntoineD commented 1 year ago

With

def f():
    """CC.

    :math:`f(0) = 1`. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX
    """

which produces inserts a blank space after the second :

def f():
    """CC.

    :math: `f(0) = 1`. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        XXXXXXXXXXXXXXXXXXXXXX
    """
weibullguy commented 1 year ago

@AntoineD I can't reproduce this one.

AntoineD commented 1 year ago

I'm on linux with python 3.10.11 if that matters and

❯ pip list        
Package            Version
------------------ -------
charset-normalizer 3.1.0
docformatter       1.7.2
pip                23.1.2
setuptools         67.7.2
untokenize         0.1.1
wheel              0.40.0
weibullguy commented 1 year ago

Reproduced and found the fix.

weibullguy commented 1 year ago

@AntoineD this should be fixed in v1.7.3-rc1