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: The multiple spaces rule should be ignored in HTML #541

Open
hippietrail opened this issue Jan 30, 2025 · 0 comments · May be fixed by #546
Open

feat: The multiple spaces rule should be ignored in HTML #541

hippietrail opened this issue Jan 30, 2025 · 0 comments · May be fixed by #546
Labels
bug Something isn't working

Comments

@hippietrail
Copy link
Contributor

Describe the bug
Harper flags multiple contiguous spaces as an error. This is usually the right thing to do, but in HTML such multiple spaces are condensed down to a single space and people use multiple spaces for formatting, aligning, indenting, etc.

I'm only talking about within tags that contain text. Harper ignores whitespace that's part of the HTML format.

To Reproduce
Steps to reproduce the behavior:

  1. Open an HTML file in your harper-supporting editor.
  2. Look for text with multiple spaces, or type in some extra spaces.
  3. Note the squigglies.

Expected behavior
No squigglies for repeated spaces in text parts of HTML files.

Screenshots

Image

Additional context
This might involve a general way of disabling specific lints for specific file formats, which will probably turn out to be useful elsewhere.

@hippietrail hippietrail added the bug Something isn't working label Jan 30, 2025
@hippietrail hippietrail changed the title The multiple spaces rule should be ignored in HTML feat: The multiple spaces rule should be ignored in HTML Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant