Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In issue #662 a more readable PGN output has been requested. Usually PGN outputs are listing more than one move per line and the line width limited to 80 characters. This patch provides a method to optionally list one full move per line with aligned columns.
A context menu item "Copy with PGN header" is added to the context menu of the
MoveList. The output is copied to the application clipboard.The patch adds a lambda expression to
MoveList::MoveListto copy the game's PGN header and a formatted move list to the clipboard. The move comments are omitted if the are hidden in the MoveList.An alignment flag is introduced as method parameter to the two
PgnGame::write()methods.Resolves #662
A new menu item "Copy with PGN header" is added to the move list's context menu (right-click).

Example: original PGN format
...
The same game with aligned PGN output obtained from clipboard after clicking the new menu item:
...
Aligned output obtained after the move comments have been hidden in the move list window. The minimal output format and headers are used. The moves are listed with exactly one full move per line