fortran-lang / fprettify

auto-formatter for modern fortran source code
https://pypi.python.org/pypi/fprettify
Other
370 stars 76 forks source link

fprettify is not idempotent for nested statements with label #103

Open e-kwsm opened 3 years ago

e-kwsm commented 3 years ago
program main
12345 if (.false.) then
      if (.false.) then
      end if
   end if
end program

fprettify formats the above to below

program main
12345 if (.false.) then
   if (.false.) then
   end if
   end if
end program

If applied again, fprettify formats the latter to the former.