diff -r 4eda5df55f86 -r dcc5bd2c56c0 src/chess/pgn.c --- a/src/chess/pgn.c Wed Aug 29 13:55:18 2018 +0200 +++ b/src/chess/pgn.c Wed Aug 29 14:01:41 2018 +0200 @@ -199,7 +199,7 @@ // TODO: move time and maybe other comments /* line break every 10 moves */ - if (i % 20) { + if ((i-1) % 20) { fputc(' ', stream); } else { fputc('\n', stream);