From 83aa502decd2113349a7883a7a0aaf4332c8cb75 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 22 Oct 2014 15:47:08 -0400 Subject: correct newlines --- lib/Bot/Zulip/Chess.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Bot/Zulip/Chess.pm b/lib/Bot/Zulip/Chess.pm index 13d563d..dcff031 100644 --- a/lib/Bot/Zulip/Chess.pm +++ b/lib/Bot/Zulip/Chess.pm @@ -178,15 +178,15 @@ sub draw_state ($self) { my $status = $self->_chessboard->status; if ($status->{mate}) { - $board .= "\nCHECKMATE\n"; + $board .= "CHECKMATE\n"; $self->reset_board; } elsif ($status->{stalemate}) { - $board .= "\nSTALEMATE\n"; + $board .= "STALEMATE\n"; $self->reset_board; } elsif ($status->{check}) { - $board .= "\nCHECK\n"; + $board .= "CHECK\n"; } my $to_move = $self->current_player; @@ -198,7 +198,7 @@ sub draw_state ($self) { } $board .= $to_move . " (" . ($self->_chessboard->to_move ? 'White' : 'Black') - . ") to move"; + . ") to move\n"; return $board; } @@ -274,7 +274,7 @@ sub format_board ($self) { $board[$i] = $prefix . $board[$i]; } - join("\n", @board) + join("\n", @board) . "\n" } __PACKAGE__->meta->make_immutable; -- cgit v1.2.3