mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-29 06:35:39 -04:00
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:
parent
7866842a14
commit
07c77efb6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue