filter out empty pgn turns

This commit is contained in:
Thibault Duplessis 2013-10-06 18:18:51 +02:00
parent 21afba0b46
commit 04928e336d
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 32d13bb286ae2db21357fc7dffe7bb436c8e2302
Subproject commit 5e5045e8acd4309a062a195988ebe5a4159d5db1

View file

@ -72,7 +72,7 @@ private[game] final class PgnDump(
number = index + from,
white = moves.headOption filter (".." !=) map { chessPgn.Move(_) },
black = moves lift 1 map { chessPgn.Move(_) })
}
} filterNot (_.isEmpty)
}
object PgnDump {