Skip to content

Commit

Permalink
Fixes issues VACUMM#25
Browse files Browse the repository at this point in the history
  • Loading branch information
RogierFloors committed Mar 2, 2022
1 parent 14c4b12 commit 9755fb2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sphinxfortran/fortran_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
class F90toRstException(Exception):
pass


class F90toRst(object):
'''Fortran 90 parser and restructeredtext formatter
Expand Down Expand Up @@ -345,9 +346,9 @@ def scan(self):
continue
if 'vardescsearch' in block:
m = block['vardescsearch'](line)
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group(
'vardesc')
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group(
'vardesc')
for bvar in list(block['vars'].values()):
bvar.setdefault('desc', '')

Expand Down Expand Up @@ -751,7 +752,6 @@ def format_lines(
tmp.append(line)
else:
tmp.extend(line.splitlines())

lines = tmp
del tmp

Expand Down Expand Up @@ -1612,6 +1612,7 @@ class FortranAutoTypeDirective(FortranAutoObjectDirective):
_warning = 'Wrong type name: %s'
_objtype = 'type'


class FortranAutoVariableDirective(FortranAutoObjectDirective):
_warning = 'Wrong variable name: %s'
_objtype = 'variable'
Expand Down

0 comments on commit 9755fb2

Please sign in to comment.