Commit baf44d95 authored by Derek Schaab's avatar Derek Schaab

Avoid duplicate piece definitions

parent 057e18ec
......@@ -201,6 +201,7 @@ func (w *svgWriter) writeDefs(g chess.Game, rowSize int, boardSizeStr, rowSizeSt
if p == chess.Empty || seen[p] {
continue
}
seen[p] = true
w.write(tagGroup)
w.write(attID)
w.writeByte(byte(p.Rune()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment