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

[BUG] [Linter] H023 includes (sometimes) invisible soft hyphen entity #1159

Open
3 tasks done
kotutuloro opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1160
Open
3 tasks done

[BUG] [Linter] H023 includes (sometimes) invisible soft hyphen entity #1159

kotutuloro opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1160
Labels
🔍 linter 🦠 bug Something isn't working

Comments

@kotutuloro
Copy link

System Info

  • OS: macOS 15.3.1
  • Python Version 3.13
  • djLint Version 1.36.4
  • template language: django

Issue

H023 (Do not use entity references) catches the soft hyphen entity ­. Certain entities are already excluded from this rule based on the Google style guide:

The only exceptions apply to characters with special meaning in HTML (like < and &) as well as control or “invisible” characters (like no-break spaces).

The soft hyphen should be added to the list of exclusions since it is invisible.

How To Reproduce

Linting &shy; will produce an error when it shouldn't.

@kotutuloro kotutuloro added 🔍 linter 🦠 bug Something isn't working labels Feb 24, 2025
@kotutuloro kotutuloro linked a pull request Feb 24, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍 linter 🦠 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant