docformatter can remove trailing whitespaces from the following script:
"""
A docstring with some invisible whitespace.
More description with some invisible trailing whitespaces.
"""
but does nothing to sphinx-gallery style header docstrings:
"""
A docstring with some invisible whitespace.
=================================================
More description with some invisible trailing whitespaces.
"""