From 8c2dc67fed40969e0aacf82aea04b88e7ec73102 Mon Sep 17 00:00:00 2001 From: Mustapha Senhaji Date: Fri, 13 Feb 2009 13:24:12 +0000 Subject: [PATCH] Goban plugin: Fixes a display issue with comments containing '\r' by Joshua Simmons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20001 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/goban/sgf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/goban/sgf.c b/apps/plugins/goban/sgf.c index ad6e4a4e05..42d4da3365 100644 --- a/apps/plugins/goban/sgf.c +++ b/apps/plugins/goban/sgf.c @@ -788,7 +788,8 @@ redo_node_sgf_succeeded: /* newlines display badly in rb->splash, so replace them * with spaces */ - if (comment_buffer[i] == '\n') + if (comment_buffer[i] == '\n' || + comment_buffer[i] == '\r') { comment_buffer[i] = ' '; }