Skip to content

Parser: Conditional boolean attribute attribute #1063

Description

@dvodvo

The following

<details <% if @doc.registration_id.present? %>open<% end %>>

generates the following error:

<div class="herb-error-message">
   `&lt;% if %&gt;` 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 %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparser

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions