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

Generate src/html/entities.cr automatically #13998

Merged

Conversation

HertzDevil
Copy link
Contributor

Also removes a few duplicate entities in the lookup table that arise from dropping the final ;.

Comment on lines +21 to +23
when 1; single_char_entities
when 2; double_char_entities
else raise "Unknown entity codepoint size"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
when 1; single_char_entities
when 2; double_char_entities
else raise "Unknown entity codepoint size"
when 1 then single_char_entities
when 2 then double_char_entities
else raise "Unknown entity codepoint size"

@straight-shoota
Copy link
Member

Aarch64 CI is failing

@straight-shoota
Copy link
Member

The CI failure seems unrelated to this PR and is tracked in #14007

@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 22, 2023
@straight-shoota straight-shoota merged commit 59a0534 into crystal-lang:master Nov 23, 2023
52 of 55 checks passed
@HertzDevil HertzDevil deleted the refactor/html-entities branch November 24, 2023 07:22
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants