Get rid of ugly nil

This commit is contained in:
Matt Soucy 2023-02-24 22:49:35 -05:00
parent 871bc93220
commit 1a948f1d9c

View File

@ -50,7 +50,7 @@ Squib::Deck.new(cards: data.nrows) do
rect layout: :description rect layout: :description
text layout: :description, str: data.effect.zip(data.blurb).map { |e, b| text layout: :description, str: data.effect.zip(data.blurb).map { |e, b|
"#{e}#{b ? "\n<i>#{b}</i>" : nil}" "#{e}#{if b then "\n<i>#{b}</i>" end}"
} do |embed| } do |embed|
embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE
embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE