The following
<details <% if @doc.registration_id.present? %>open<% end %>>
generates the following error:
<div class="herb-error-message">
`<% if %>` started here but never closed with an end tag. The end tag may be in a different
</div>
referencing the opening <% tag.
The only way around the generation of this error is much longer & repetitive:
<% if @doc.registration_id.present? %>
<details open>
[...]
<% else %>
<details open>
[...]
<% end %>
The following
generates the following error:
referencing the opening
<%tag.The only way around the generation of this error is much longer & repetitive: