Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FortranAutoSrcfileDirective #9

Open
ndarmage opened this issue Jun 6, 2017 · 2 comments
Open

Fix FortranAutoSrcfileDirective #9

ndarmage opened this issue Jun 6, 2017 · 2 comments
Assignees

Comments

@ndarmage
Copy link

ndarmage commented Jun 6, 2017

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
Copy link
Author

ndarmage commented Jun 6, 2017

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

@stefraynaud stefraynaud self-assigned this Jun 15, 2018
@ndarmage
Copy link
Author

ndarmage commented Apr 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants