Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Error raised when there is an if within a capture #211

Closed
Rykus0 opened this issue Oct 20, 2023 · 1 comment
Closed

Error raised when there is an if within a capture #211

Rykus0 opened this issue Oct 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Rykus0
Copy link

Rykus0 commented Oct 20, 2023

Describe the bug
Error raised when there is an if within a capture

Unformatted source

{% capture header %}
  <header>
    <h1>{{ title }}</h1>
    {% if item_count > 0 %}
      <p>You are <b>$13.00</b> away from <b>free shipping</b>!</p>
      <progress max="100" value="75">
    {% else %}
      <p>{{ help_text_empty }}</p>
    {% endif %}
  </header>
{% endcapture %}

Expected output
No error

Actual output
LiquidHTMLParsingError: Attempting to close LiquidTag 'if' before LiquidBranch 'null' was closed

Debugging information

  • OS Mac
  • Version 1.1.0 (assuming this is the plugin version, not the OS)

Additional context
Add any other context about the problem here.

@Rykus0 Rykus0 added the bug Something isn't working label Oct 20, 2023
@Rykus0
Copy link
Author

Rykus0 commented Oct 20, 2023

Nevermind - this is my mistake. It was the unclosed <progress> that was the problem.

@Rykus0 Rykus0 closed this as completed Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant