Fix formatting of the authors list
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 22 Oct 2020 08:13:42 +0000 (11:13 +0300)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 22 Oct 2020 13:45:54 +0000 (13:45 +0000)
Previously defined length of 18 chars per name was not enough for
some of us and the authors list become poorly aligned. This changes
the format to have only three authors per line, thus allowing for
up to 26 characters per name. And we are hiring!

src/gromacs/utility/binaryinformation.cpp

index a719972ae62d64afcb830f6228dcf839a70048cf..7127a5b4d500b01d2fdfd0de52de2fcfa3c2e541 100644 (file)
@@ -165,9 +165,9 @@ void printCopyright(gmx::TextWriter* writer)
     writer->writeLine(formatCentered(78, "GROMACS is written by:"));
     for (int i = 0; i < NCONTRIBUTORS;)
     {
-        for (int j = 0; j < 4 && i < NCONTRIBUTORS; ++j, ++i)
+        for (int j = 0; j < 3 && i < NCONTRIBUTORS; ++j, ++i)
         {
-            const int            width = 18;
+            const int            width = 26;
             std::array<char, 30> buf;
             const int            offset = centeringOffset(width, strlen(Contributors[i]));
             GMX_RELEASE_ASSERT(static_cast<int>(strlen(Contributors[i])) + offset < gmx::ssize(buf),