Closed meteokid closed 3 years ago
the reason for this is that continuation lines are joined into one fortran line for in-line formatting. Since the replacement changes the number of characters of the operator, it should also change the position of the line break that is inserted after all formatting has been applied. This should be easy to fix and I will have a look.
I committed a patch for this. Pull request https://github.com/pseewald/fprettify/pull/48
Resolved by #48
I have some code that is badly reformatted when I specify
--enable-replacements --c-relations
The code snippet:
Here are the results with and w/o the problematic options.
With the option set I get a False "line too long" warning and a "mangled" source code
With
-l 512
the warning is gone but the source code is still "mangled"