Format docstrings for better output in Sphinx.