Skip to content

Commit

Permalink
fix: PGN encoder missing space after move number
Browse files Browse the repository at this point in the history
  • Loading branch information
dechristopher committed Jul 6, 2022
1 parent adab64d commit fdf9070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgn.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func encodePGN(g *Game) string {
pos := g.positions[i]
txt := g.notation.Encode(pos, move)
if i%2 == 0 {
s += fmt.Sprintf("%d.%s", (i/2)+1, txt)
s += fmt.Sprintf("%d. %s", (i/2)+1, txt)
} else {
s += fmt.Sprintf(" %s ", txt)
}
Expand Down

0 comments on commit fdf9070

Please sign in to comment.