newsavatar / jspgnviewer

Automatically exported from code.google.com/p/jspgnviewer
Apache License 2.0
0 stars 0 forks source link

Skips comment and variation after comment or variation #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The best way to show the problem is paste a pgn

[White "Kramnik,V"]
[Black "Svidler,P"]
[WhiteElo "2769"]
[BlackElo "2735"]
[Result "1/2-1/2"]
[Date "2007.09.13"]
[Event "WCh"]
[Site "Mexico City MEX"]
[Round "1"]
[ECO "D43"]
[Annotator ""]
[Source ""]
[Remark ""]
1.Nf3 d5 2.d4 Nf6 3.c4 c6 4.Nc3 e6 5.Bg5 h6 6.Bxf6 Qxf6 7.e3 Nd7 8.Bd3 g6
9.e4 dxc4 10.e5 Qe7 11.Bxc4 Bg7 12.O-O O-O 13.Re1 Rd8 14.Qe2 {+=} ( 14.Qc2
b6 15.Rad1 Bb7 16.a3 Rac8 17.Ba2 c5 18.d5 exd5 19.Nxd5 Bxd5 20.Bxd5
Nf8 21.Qe4 Ne6 22.Bc4 Rd7 23.g3 Rcd8 24.Rc1 h5 25.Kg2 Bh6 26.Rb1
Rc7 27.a4 Rcd7 28.b3 Bd2 29.Re2 Bh6 30.a5 Rb8 31.axb6 axb6 32.Bb5
Rdd8 33.Ra1 Bg7 34.Raa2 Qb7 35.Qxb7 Rxb7 36.Red2 Rbb8 37.Rxd8+
Rxd8 38.Bc4 Nf8 39.Ra7 Ne6 40.Rb7 Re8 41.Rxb6 Nf8 42.Ng5 Re7
43.f4 Nd7 44.Rb7 Kf8 45.Nxf7 Nxe5 46.Rb8+ {1-0, Anand Viswanathan 2753  -
Dreev Alexey 2690 , Hyderabad 2002 Cup World FIDE (1/2 final)}
) ( 14.Bd3 b6 15.Qe2 Rb8 16.Rad1 Bb7 17.Be4 Nf8 18.h4 Rd7 19.Rd2
c5 20.dxc5 Qxc5 21.Bxb7 Rbxb7 22.Ne4 Rxd2 23.Qxd2 Qe7 24.g4 f5
25.exf6 Bxf6 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3 47.Qc1 Qe4 48.f4
h5 49.Rc4 Qd3 50.Qc2 Qxc2 51.Rxc2 a6 52.Kg3 Bf8 53.Kf3 Rb7 54.Nd8
Rd7 55.Nc6 {...0-1, Bocharov Dmitry 2602  - Dobrov Vladimir 2479 , Moscow 
4/ 2/2007 It (open)}
) 16.Bd3 {N} ( 16.Ne4 c5 17.dxc5 bxc5 18.Nd6 Nxe5 19.Nxe5 Rxd6
20.Rxd6 Qxd6 21.Nxf7 Qe7 22.Ne5 Bxe5 23.Qxe5 Kf7 24.Re3 Ra7 25.Qh8
{1-0, Mueller Michael 2210  - Kaczynski Janusz, corr. 1992 Ch Poland (corr.)}
) Bb7 17.Be4 b5 18.h4 Nb6 19.Bb1 c5 {+0.44 Rybka v2.3.2.mp.w32}
( 19...a4 {!?} 20.Bd3 a3 21.b3 b4 22.Ne4 {+0.18 Rybka v2.3.2.mp.w32} )
20.Nxb5 Ba6 21.h5 g5 22.Nh2 {?!} {-0.15 Rybka v2.3.2.mp.w32}
( 22.Bd3 {!?} Nd5 23.g3 Nb4 24.Be4 Rac8 25.a3 Qe8 26.a4 cxd4
27.Nfxd4 Bxe5 28.Bh7+ Kxh7 29.Qxe5 Qh8 30.Nf3 {+0.29 Rybka v2.3.2.mp.w32}
) Rxd4 23.Rxd4 {-0.07 Rybka v2.3.2.mp.w32} 1/2-1/2

2.
3.

What is the expected output? What do you see instead?
You should be able to see all variations. 
A)For example after 14 Qe2 we have a comment witch displays {+=} but the
variation after it is skipped
B)After 15Rad1 there are 2 variations (....) (.....)
The first is displayed. The second is not
C) After 16Bd3{n} again the variation is not show (show variation after
comment still does not work

So generally the code shows only the first instance of a comment or a
variation. Comment after comment. Variation after comment or variation
after variation are skipped.

What version of the product are you using? On what operating system?
I am using the latest version 0.5.6 . Downloaded and replaced the old files.

Please provide any additional information below.

Original issue reported on code.google.com by kostas.o...@gmail.com on 22 Sep 2007 at 11:23

GoogleCodeExporter commented 9 years ago
I pasted it to chesspastebin.com which is running also the 0.5.6 version. I 
think i'm
seeing all the multiple comments. After the move 14. Qe2 there are many
comments/variations and not just the {+=}. See link for more details
http://www.chesspastebin.com/index.php?pid=view&id=115

Maybe you're having a cache issue?

Original comment by toom...@gmail.com on 23 Sep 2007 at 8:01

GoogleCodeExporter commented 9 years ago
You are right. Although i have shift+refreshed the page it worked with the old 
js
files. Deleted js files, forced refresh and put them back. Now its ok. 
Everything
shows perfectly.

Original comment by kostas.o...@gmail.com on 23 Sep 2007 at 8:24

GoogleCodeExporter commented 9 years ago
Good. I'll close the issue.

Original comment by toom...@gmail.com on 23 Sep 2007 at 8:48