summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 09:16:12 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 09:16:12 -0400
commit5c79a9376feab23366859a3bbf44cf393d39ad91 (patch)
treeb32c37ccc8dacf844816a71d9197d8bd8b0c19fa /app
parent7f6117a84a0901a90e09680ba111c003d8c942a6 (diff)
Add line break after combat results
Diffstat (limited to 'app')
-rw-r--r--app/controllers/game_controller.rb1
-rw-r--r--app/views/look/_results.html.erb2
2 files changed, 3 insertions, 0 deletions
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 @@
<p><%= result[:body] %></p>
<% when "error" %>
<p class="text-red-500"><%= result[:message] %></p>
+ <% when "br" %>
+ <br />
<% end %>
<% end %>
</div>