diff options
author | Mustapha Senhaji <moos@rockbox.org> | 2009-02-13 13:24:12 +0000 |
---|---|---|
committer | Mustapha Senhaji <moos@rockbox.org> | 2009-02-13 13:24:12 +0000 |
commit | 8c2dc67fed40969e0aacf82aea04b88e7ec73102 (patch) | |
tree | 6ca99db2cdf1eeb054ef94c6fa1aff206f75d5c9 /apps/plugins/goban/sgf.c | |
parent | 63404a7d5d8ea00b50ff25f19ceb0afe43c5c3c1 (diff) | |
download | rockbox-8c2dc67fed40969e0aacf82aea04b88e7ec73102.tar.gz rockbox-8c2dc67fed40969e0aacf82aea04b88e7ec73102.zip |
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
Diffstat (limited to 'apps/plugins/goban/sgf.c')
-rw-r--r-- | apps/plugins/goban/sgf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |||
788 | /* newlines display badly in rb->splash, so replace them | 788 | /* newlines display badly in rb->splash, so replace them |
789 | * with spaces | 789 | * with spaces |
790 | */ | 790 | */ |
791 | if (comment_buffer[i] == '\n') | 791 | if (comment_buffer[i] == '\n' || |
792 | comment_buffer[i] == '\r') | ||
792 | { | 793 | { |
793 | comment_buffer[i] = ' '; | 794 | comment_buffer[i] = ' '; |
794 | } | 795 | } |