I tried it on the example and edited the fixed-form source file (ford_77_example.f) to see if an earlier problem I had run into was gone. Indeed, it seems to work properly with long lines. This offers possibilities
However, I did note a peculiarity: the file appears twice in the overview. This seems related to the .f extension. Adding more fixed form files leads to each name appearing twice…
Hm, I applied the new version to an actual program and ran into problems. This was with a fixed-form source file. I can try and construct a minimal test case.
subroutine agr_hyd_step(input_hyd, ipnt, ipnt_q, ipnt_vdf, ipnt_tau, output_hyd)
! function : aggregeate one hydrodynamic step
real, parameter :: rmiss = -999.
return
end
It is in a fixed-form source file. I get errors about the “real” statement and about “end”. Renaming it to .f90 solves the problems. Well, for this case
I do prefer much more the new style, guess it’s a matter of taste. What would be nice is different CSS templates to provide different “themes”, as sphinx does. But, knowing how much I hate web design, I do love the default style!
@Arjen This looks to be because it’s hitting the 72-character limit for fixed-form Fortran. If you run ford like:
ford project.md --config="fixed_length_limit=false"
then it should work. You can also set this option permanently in your config file. It might make sense for Ford to flip the default for this value, you’re not the first person to bump into it!
@zoziha@fedebenelli The style is definitely a matter of personal preference
Adding themes would be nice, but I would quite like to go even further and enable Ford as a plugin to Sphinx itself, in order to benefit from all of their lovely features!