Closed ksromanov closed 1 year ago
Sorry for the delay in looking at this. Yep, the lookahead I did meant that exactly 73-character lines wouldn't get split. Over-eager splitting doesn't happen here due to newline handling happening earlier. Thanks for the fix and links to docs! Happy to merge.
According to http://fortranwiki.org/fortran/show/Continuation+lines ampersand sign should be placed at column 73 and after, but not at column 72. So that
&
is ignored in fixed-form and is processed in free-form languages.This patch fixes old behavior, which sometimes produced lines 73 characters long.
We (D. Beer, R. Hidalgo-Charman and myself) found this bug working on random FORTRAN code autogeneration tool. One of the examples of generated files with too long lines: