From d327a4c512830f6b733be25f0e7801fa70dd678e Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 30 Jun 2022 05:57:52 -0400 Subject: [PATCH] whitespace --- src/input.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index d40bb55747..11e8a53952 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -226,7 +226,7 @@ void Input::file() // continue if last char read was not a newline // can happen if line is very long - + m += strlen(&line[m]); if (line[m-1] != '\n') continue; break; @@ -436,18 +436,18 @@ void Input::parse() } if (*ptr == '\'') { ptrmatch = strchr(ptr+1,'\''); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched single quote in command"); ptr = ptrmatch + 1; } else if (*ptr == '"') { if (strstr(ptr,"\"\"\"") == ptr) { ptrmatch = strstr(ptr+3,"\"\"\""); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched triple quote in command"); ptr = ptrmatch + 3; } else { ptrmatch = strchr(ptr+1,'"'); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched double quote in command"); ptr = ptrmatch + 1; } @@ -668,7 +668,7 @@ void Input::substitute(char *&str, char *&str2, int &max, int &max2, int flag) } else if (*ptr == '\'') { ptrmatch = strchr(ptr+1,'\''); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched single quote in command"); nchars = ptrmatch+1 - ptr; strncpy(ptr2,ptr,nchars); @@ -677,7 +677,7 @@ void Input::substitute(char *&str, char *&str2, int &max, int &max2, int flag) } else if (*ptr == '"') { if (strstr(ptr,"\"\"\"") == ptr) { ptrmatch = strstr(ptr+3,"\"\"\""); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched triple quote in command"); nchars = ptrmatch+3 - ptr; strncpy(ptr2,ptr,nchars); @@ -685,7 +685,7 @@ void Input::substitute(char *&str, char *&str2, int &max, int &max2, int flag) ptr2 += nchars; } else { ptrmatch = strchr(ptr+1,'"'); - if (ptrmatch == NULL) + if (ptrmatch == NULL) error->all(FLERR,"Unmatched double quote in command"); nchars = ptrmatch+1 - ptr; strncpy(ptr2,ptr,nchars);