Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support void element parsing, fixes #637 #732

Merged
merged 5 commits into from
May 10, 2024

Conversation

a-h
Copy link
Owner

@a-h a-h commented May 8, 2024

No description provided.

@bastianwegge
Copy link
Contributor

LGTM 🎉

@a-h a-h requested a review from joerdav May 10, 2024 09:07
Copy link
Collaborator

@joerdav joerdav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me, glad to see the diagnoser coming in handy again!
On thing I spotted, feel free to merge without as it is fine without, Is that rather than adding to the TestFormatter test you could add to the other formatter tests:
https://github.com/a-h/templ/tree/main/parser/v2/testdata

To be honest we could probably remove that test entirely, I find the txt files easier to add than the table tests.

@a-h
Copy link
Owner Author

a-h commented May 10, 2024

I've migrated the tests to the txtar format.

@a-h a-h merged commit ad707cb into main May 10, 2024
7 checks passed
@a-h a-h deleted the allow_void_elements_option_a branch May 10, 2024 15:50
@joerdav
Copy link
Collaborator

joerdav commented May 10, 2024

I hope you wrote a script to do that for you lol!

@a-h
Copy link
Owner Author

a-h commented May 10, 2024

I did! 😂

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.

3 participants