sphinx-fortran icon indicating copy to clipboard operation
sphinx-fortran copied to clipboard

Fix FortranAutoSrcfileDirective

Open ndarmage opened this issue 7 years ago • 2 comments

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,

ndarmage avatar Jun 06 '17 10:06 ndarmage

This issue refers specifically with .. f:autosrcfile:: pathname at : (http://)sphinx-fortran.readthedocs.io/en/latest/user.autodoc.html

ndarmage avatar Jun 06 '17 12:06 ndarmage

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()

ndarmage avatar Apr 09 '21 12:04 ndarmage