--- 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);