filter out empty pgn turns
This commit is contained in:
parent
21afba0b46
commit
04928e336d
|
@ -1 +1 @@
|
|||
Subproject commit 32d13bb286ae2db21357fc7dffe7bb436c8e2302
|
||||
Subproject commit 5e5045e8acd4309a062a195988ebe5a4159d5db1
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue