VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

Fix FortranAutoSrcfileDirective #9

Open ndarmage opened 7 years ago

ndarmage commented 7 years ago

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 commented 7 years ago

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

ndarmage commented 3 years ago

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