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] [Formatter] self-closing img tag ruins indentation #1094

Open
3 tasks done
FawadOmerSid opened this issue Jan 7, 2025 · 0 comments
Open
3 tasks done

[BUG] [Formatter] self-closing img tag ruins indentation #1094

FawadOmerSid opened this issue Jan 7, 2025 · 0 comments
Labels
🦠 bug Something isn't working 🧽 formatter

Comments

@FawadOmerSid
Copy link

System Info

  • OS: e.g. macOS 13.1
  • Python Version 3.8.10
  • djLint Version 1.35.2
  • template language: e.g. django html

Issue

Self closing image tag ruins indentation.

How To Reproduce

This is before formatting:



After formatting:

The formatter considers the to be 's closing tag.

@FawadOmerSid FawadOmerSid added 🦠 bug Something isn't working 🧽 formatter labels Jan 7, 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 🧽 formatter
Projects
None yet
Development

No branches or pull requests

1 participant