3 # Preprocessor for chess games that are formatted as blocks of moves
4 # interspersed with blocks of text, separated by blank lines. Finds
5 # the blocks of text and encloses them with "{ }" brackets so that
6 # xboard's game parser can identify them as comments. Many games are
7 # posted to rec.games.chess in this format.
9 # Limitation: Fails if a text block starts with a numbered move. In
10 # that case you'll have to hand-edit the output.
20 } else if (blankline) {