summaryrefslogtreecommitdiff
path: root/apps/plugins/goban/sgf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/goban/sgf.c')
-rw-r--r--apps/plugins/goban/sgf.c3
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:
/* 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] = ' ';
}