From: Berk Hess Date: Mon, 22 Jun 2015 12:03:39 +0000 (+0200) Subject: Add sugar to print empty line in printBinaryInformation X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=b37bb72d939d722f6f6a0013af0c4319b41a5134;p=alexxy%2Fgromacs.git Add sugar to print empty line in printBinaryInformation The binary information print was missing a prefix and suffix on an empty line which caused invalid xvg file formatting. Change-Id: I8faa76502fc44ebd698387e4ab0f85f1473be710 --- diff --git a/src/gromacs/gmxlib/copyrite.cpp b/src/gromacs/gmxlib/copyrite.cpp index 97720b6513..642f56c84c 100644 --- a/src/gromacs/gmxlib/copyrite.cpp +++ b/src/gromacs/gmxlib/copyrite.cpp @@ -821,7 +821,7 @@ void printBinaryInformation(FILE *fp, const int indent = centeringOffset(78 - strlen(prefix) - strlen(suffix), title.length()) + 1; fprintf(fp, "%s%*c%s%s\n", prefix, indent, ' ', title.c_str(), suffix); - fprintf(fp, "\n"); + fprintf(fp, "%s%s\n", prefix, suffix); if (settings.bCopyright_) { GMX_RELEASE_ASSERT(prefix[0] == '\0' && suffix[0] == '\0',