From 7f95feb0e4ab48b6f203b4003e4bd651c1a80e4c Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 3 Jan 2013 19:10:11 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9209 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/input.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index e1ce285185..58c9bb4af5 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -182,8 +182,8 @@ void Input::file() // echo the command unless scanning for label if (me == 0 && label_active == 0) { - if (echo_screen && screen) fprintf(screen,"%s",line); - if (echo_log && logfile) fprintf(logfile,"%s",line); + if (echo_screen && screen) fprintf(screen,"%s\n",line); + if (echo_log && logfile) fprintf(logfile,"%s\n",line); } // parse the line @@ -417,8 +417,8 @@ void Input::substitute(char *&str, char *&str2, int &max1, int &max2, int flag) strcpy(str,str2); ptr += strlen(value); if (flag && me == 0 && label_active == 0) { - if (echo_screen && screen) fprintf(screen,"%s",str); - if (echo_log && logfile) fprintf(logfile,"%s",str); + if (echo_screen && screen) fprintf(screen,"%s\n",str); + if (echo_log && logfile) fprintf(logfile,"%s\n",str); } continue; }