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
This commit is contained in:
Mustapha Senhaji 2009-02-13 13:24:12 +00:00
parent 63404a7d5d
commit 8c2dc67fed

View file

@ -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] = ' ';
}