<%-
if overseas_passports_embassies.any?
  overseas_passports_embassies.each do |embassy|
-%>


$A
<%= embassy.title %>
<%= embassy.address.label.value %>
$A

$C
<%- embassy.contact_numbers.each do |contact| -%>
<%# Some labels have a trailing :, some don't %>
<%= contact.label.sub(/:\s*\z/, '') %>: <%= contact.number %>
<%- end -%>

<%- if embassy.details.email.present? -%>
Email: <<%= embassy.details.email.strip %>>
<%- end -%>

<%- if embassy.web_url.present? -%>
[<%= embassy.title %> - opening hours](<%= embassy.web_url %>)
<%- end -%>
$C
<%-
  end
-%>
<%- else -%>

No embassy details found
<%- end -%>

<%
if overseas_passports_embassies.any?
  overseas_passports_embassies.each do |embassy|
%>


$A
<%= embassy.title %>
<%= embassy.address.label.value %>
$A

$C
<% embassy.contact_numbers.each do |contact| %>
<%# Some labels have a trailing :, some don't %>
<%= contact.label.sub(/:\s*\z/, '') %>: <%= contact.number %>
<% end %>

<% if embassy.details.email.present? %>
Email: <<%= embassy.details.email.strip %>>
<% end %>

<% if embassy.web_url.present? %>
[<%= embassy.title %> - opening hours](<%= embassy.web_url %>)
<% end %>
$C
<%
  end
%>
<% else %>

No embassy details found
<% end %>

Remove space-stripping ERB tags from shared partials
Remove space-stripping ERB tags from shared partials

The use of `<%- -%>` has no effect[1].

[1]: "When on a line that only contains whitespaces except for the tag, <% %>
suppress leading and trailing whitespace, including the trailing newline. <% %>
and <%- -%> are the same. Note however that <%= %> and <%= -%> are different:
only the latter removes trailing whitespaces." from
http://api.rubyonrails.org/classes/ActionView/Base.html
