Page 1 of 1

Stopped hand doesn't add line separator in hand history file

Posted: Mon Jul 01, 2019 9:44 am
by imop44
When a hand is stopped midway through action (ex: clicking "Take Offline (now)") then the hand history is not saved with the usual line-breaks at the end. This causes it to be merged with the next hand history in the file:

Code: Select all

Hand #67-1 - 2019-07-01 10:32:08
Game: Limit Hold'em (a1 - 2000b) - Stakes 20/40 Ante 1
Site: TestSite
Table: Ring Game #02
Seat 3: Bob (1200)
Seat 4: Admin (1200)
Bob has the dealer button
Bob posts ante 1
Admin posts ante 1
Steven posts small blind 10
Admin posts big blind 20
** Hole Cards ** [2 players]
Hand #68-1 - 2019-07-01 10:32:39
Game: Limit Hold'em (a1 - 2000b) - Stakes 20/40 Ante 1
Site: TestSite
Table: Ring Game #02
Seat 1: Admin (1200)
Seat 2: Bob (1200)
If the hands completed normally, there'd be two lines in-between hand #67 and #68. This is pretty minor but it can mess up scripts for parsing hand histories if unaware of it.

Re: Stopped hand doesn't add line separator in hand history

Posted: Mon Jul 01, 2019 10:16 am
by Kent Briggs
imop44 wrote:This is pretty minor but it can mess up scripts for parsing hand histories if unaware of it.
Your script should always be looking for key words (line begins with "Hand #") to mark the beginning of a new hand rather than blank lines. That said, adding the blank line before a new hand starts rather than at the end may be something I'll consider changing.

Re: Stopped hand doesn't add line separator in hand history

Posted: Wed Jul 10, 2019 3:15 pm
by Kent Briggs
This is now fixed in 6.11