sphinx-fortran
sphinx-fortran copied to clipboard
Fix FortranAutoSrcfileDirective
Hi,
please change the following lines of class FortranAutoSrcfileDirective(Directive), method run
if objtype:
objtype = objtype.split(' ,')
with:
if objtype:
objtype = objtype.split(',')
objtype = [o.strip() for o in objtype]
There's a white trailing space in the version from the repo. I cannot pull my changes, sorry. Thanks in advance for your kind understanding. Regards,
This issue refers specifically with .. f:autosrcfile:: pathname
at :
(http://)sphinx-fortran.readthedocs.io/en/latest/user.autodoc.html
Dear Dev team,
version 1.1.1 from https://pypi.org/project/sphinx-fortran/ does not fix this issue yet.
According to the documentation of .. f:autosrcfile:: pathname
at
https://sphinx-fortran.readthedocs.io/en/latest/user.autodoc.html
elements after :objtype: should only be separated by normal blanks.
Therefore, the following should be used in module fortran_autodoc.py.
if objtype:
objtype = objtype.split()