Follow-up Comment #12, bug #27799 (project xboard):

OK, this is what I was afraid of. So the method of stripping outer
parentheses, and then replacing them with braces, is not safe.

I guess the only solution is to not strip off the {} or () hen storing the
comment ith the move. Then you also don't have to add them when you save them
on file. Just append the various comment tokens with a space between them.

A little complication is that I currently also weave in the engine
score/depth and time on saving and displaying, when they are available, and
extract and strip them from the comment when they are present in it on
reading. (To prevent they will apper twice when you save again.) This would
then have to be done in a slightly smarter way, depending on if the comment
starts with { or (.

I guess I am not going to fix that now. Re-saving heavily commented games is
not really an application XBoard is designed for. We can put it on the to-do
list.

H.G. Muller

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27799>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-XBoard mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to