diff --git a/src/info.cpp b/src/info.cpp index f1dc96645b..cf56f3c1d4 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -655,7 +655,7 @@ void Info::command(int narg, char **arg) if ((style[i] != LOOP) && (style[i] != ULOOP)) ndata = input->variable->num[i]; for (int j=0; j < ndata; ++j) - fmt::print(out," {}",data[i][j]); + if (data[i][j]) fmt::print(out," {}",data[i][j]); fputs("\n",out); } }