-
-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
scipy/scipy#8702 shows an example where a line with multiple function names prior to the colon (:
) loses all text after the colon.
See Also
--------
scipy.stats.kstwobign : Provides the functionality as a continuous distribution
smirnov, smirnovi, smirnovc, smirnovci, smirnovp : Functions for the one-sided distribution
generates a block looking like
See Also:
scipy.stats.kstwobign Provides the functionality as a continuous distribution
smirnov, smirnovi, smirnovc, smirnovci, smirnovp
The text "Functions for the one-sided distribution" has completely disappeared from the output.
Also the last line, while inside the HTML <div> ... </div>
block, is in a separate paragraph.
Q. What is the spec for the See Also block?
I found an implementation inside NumpyDocString._parse_see_also()
in numpydoc/docscrape.py
. It appears to accept:
<FUNCNAME>
<FUNCNAME> <SPACE>* : <DESCRIPTION>
<FUNCNAME> , <FUNCNAME>
but not<FUNCNAME> , <FUNCNAME> SPACE* : <DESCRIPTION>
Is the dropping of the DESCRIPTION in the last one intentional, or an unintended side-effect of the particular regexes used?
Metadata
Metadata
Assignees
Labels
No labels