-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
With sphinx-apidoc generated module documentation, when the first line of a docstring includes two or more ()
, the HTML output is malformed:
dotfiles_status() -- print dotfiles_status()¶
There's probably a feature here that I'm unintentionally utilizing. Is there a greedy match for a manual override of argdocs in the first line of a docstring?
conf.py
#!python
extensions = [
'sphinx.ext.autodoc',
]
Examples:
#!python
def dotfiles_status(self, line):
"""dotfiles_status() -- print dotfiles_status()"""
pass
#!python
def dotfiles_status(self, line):
"""
dotfiles_status() -- print dotfiles_status()"""
pass
#!python
def dotfiles_status(self, line):
"""
dotfiles_status() -- print dotfiles_status()
"""
pass
#!python
def dotfiles_status(self, line):
"""
dotfiles_status() -- print dotfiles_status()
.
"""
pass
With an initial period in the first line containing text, or a terminal period, the output looks correct (does not break the output):
#!python
def dotfiles_status(self, line):
"""
.
dotfiles_status() -- print dotfiles_status()
"""
pass
#!python
def dotfiles_status(self, line):
"""
dotfiles_status() -- print dotfiles_status() .
"""
pass
- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1626
- Originally reported by: Wes Turner
- Originally created at: 2014-11-14T03:28:01.748