From 5c79a9376feab23366859a3bbf44cf393d39ad91 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 09:16:12 -0400 Subject: Add line break after combat results --- app/controllers/game_controller.rb | 1 + app/views/look/_results.html.erb | 2 ++ 2 files changed, 3 insertions(+) (limited to 'app') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index 04d743c..c506aa6 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -308,6 +308,7 @@ class GameController < ApplicationController raise "Invalid award type string (#{award_data[:type]})" end end + @results.push({ type: "br" }) end break end diff --git a/app/views/look/_results.html.erb b/app/views/look/_results.html.erb index 2c79812..1da0af7 100644 --- a/app/views/look/_results.html.erb +++ b/app/views/look/_results.html.erb @@ -25,6 +25,8 @@

<%= result[:body] %>

<% when "error" %>

<%= result[:message] %>

+ <% when "br" %> +
<% end %> <% end %> -- cgit v1.2.3