Skip to content

Fix extra initial newline in PGN writing#1000

Merged
Disservin merged 1 commit intoDisservin:masterfrom
AndyGrant:AGE/fix-extra-initial-newline
Apr 5, 2026
Merged

Fix extra initial newline in PGN writing#1000
Disservin merged 1 commit intoDisservin:masterfrom
AndyGrant:AGE/fix-extra-initial-newline

Conversation

@AndyGrant
Copy link
Copy Markdown
Contributor

If the initial line is > 80 characters, then a leading newline is added, leading to multiple new lines between the headers and body of the PGN, which breaks the spec., and breaks python-chess at least. PR fixes it.

This is technically going to be a breaking change for OpenBench. I don't have a great mechanism to force update other than the version value. So if its immaterial to you, bumping the version to 1.8.1 would help me. If not, then I'll go and get some versioning more granular.

@Disservin
Copy link
Copy Markdown
Owner

i'll bump the version

@Disservin Disservin merged commit 5d1c9c0 into Disservin:master Apr 5, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants