Skip to content

Conversation

@ryo-morimoto
Copy link
Contributor

@ryo-morimoto ryo-morimoto commented Nov 30, 2025

  • Modified blockCommentDataRegex() to capture the closing tag with whitespace trim marker
  • Added trimWhitespaces() call in lexComment() when -%} is detected
  • Added unit and integration tests for comment tag whitespace trim

Fixes #52

@ryo-morimoto ryo-morimoto changed the title add comment tag whitespace trim tests Fix whitespace trim not working on {%- endcomment -%} tag. Nov 30, 2025
@cappuc
Copy link
Contributor

cappuc commented Dec 1, 2025

Thank you!

It looks good to me!

@cappuc cappuc merged commit 1f35dbf into keepsuit:main Dec 1, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Whitespace trim on {%- endcomment -%} tag does not remove trailing whitespace

2 participants