Subject: | missing multiple variations on same level |
Date: | Sun, 06 Nov 2011 16:37:05 +0100 |
To: | bug-Chess-PGN-Filter [...] rt.cpan.org |
From: | Olivier De Marchi <olivier.demarchi [...] free.fr> |
Hi
With this pgn file :
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
1.d4 d5 2.c4 c6 ( 2...e6 3.Nf3 ) ( 2...e5 3.dxe5 d4 ) 3.Nc3 g6 ( 3...Nf6
4.Nf3 (4.g3 Bg7) ) 4.e3 *
my @dom = filter(source => "pgnfile.pgn",filtertype => 'TEXT');
give :
[Date "????.??.??"]
[Round "1"]
[White "?"]
[Black "?"]
[Result "*"]
[ECO "D10"]
[Event ""]
[Opening "QGD Slav defense"]
[Site ""]
1. d4 d5 2. c4 c6{e6 4. Nf3}3. Nc3 g6{Nf6 5. Nf3{5. g3 Bg7}}4. e3 *
the variation 2..e5 is missing.
this error does not come from the TEXT but from DOM.
I do not know where is the error. Perhaps in parseComments.
friendly
Olivier