DroidFish: Fixed bug when exporting time information to PGN data.

This commit is contained in:
Peter Osterlund 2012-01-08 01:18:07 +00:00
parent 298d0478de
commit 40bb41bbca
2 changed files with 2 additions and 1 deletions

View File

@ -1155,7 +1155,7 @@ public class GameTree {
private final void addExtendedInfo(PgnToken.PgnTokenReceiver out,
String extCmd, String extData) {
out.processToken(this, PgnToken.COMMENT, "{[%" + extCmd + " " + extData + "]}");
out.processToken(this, PgnToken.COMMENT, "[%" + extCmd + " " + extData + "]");
}
private static final String getTimeStr(int remainingTime) {

View File

@ -576,6 +576,7 @@ public class GameTreeTest extends TestCase {
options.exp.playerAction = true;
pgn = gt.toPGN(options);
assertTrue(pgn.indexOf("--") >= 0);
assertTrue(pgn.indexOf("1. -- {[%playeraction resign]} 0-1") >= 0);
gt = new GameTree(null);
gt.readPGN(pgn, options);