fortran-lang / fprettify

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

DO LOOP Format Issue? #173

Open TheBlueRage opened 4 months ago

TheBlueRage commented 4 months ago

First, my apologies as I'm a novice Fortran programmer. I recently came across some code that did not prettify the way I would have expected it to. I am attaching the original code ( do-orig.txt ), the fprettified code ( do-fprettify ), and the what I would have expected the result to be ( do-expected.txt) I realize this may be just an issue with my understanding of Fortran code, so I am willing to accept that I need more education on this issue. In either event, I would appreciate your opinion. do-expected.txt do-fprettify.txt do-orig.txt

dbroemmel commented 4 months ago

Please refer to #63, #52, and possibly #101.

If you switch to END DO instead of CONTINUE it feels a little more modern, is supported, and you can still use labels should you wish to do so.