fortran-lang / fprettify

auto-formatter for modern fortran source code

Home Page:https://pypi.python.org/pypi/fprettify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DO LOOP Format Issue?

TheBlueRage opened this issue · comments

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

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.