HvD: The previous attempt to remove the trailing spaces failed in that it

broke the Doxygen documentation. For some reason gfortran is paranoid about
comment lines that end in "\\\\ \n" feeling the need to generate a warning
for every "escaped" space. For some reason Python is does not seem be able
to replace "\\ " with "\\" instead a replacement string that consists only
of a backslash character triggers and error. However I can replace " \n" with
"\n" which has the desired effect and gets gfortran to shut up without breaking
anything else as far as I can tell at this moment.
This commit is contained in:
Huub Van Dam 2015-10-10 02:24:01 +00:00
parent 7866842a14
commit 07c77efb6f

View file

@ -61,7 +61,7 @@ def rewrap_line(longline):
exit(1)
sys.stdout.write(longline[:i]+"\n")
longline = "C> " + longline[i:]
sys.stdout.write(re.sub(r'\\ ', "", longline))
sys.stdout.write(re.sub(r' \n', "\n", longline))
# sys.stdout.write(longline)
if len(sys.argv) == 2: