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] --preserve-blank-lines does not work on files indented with tabs. #812

Open
3 tasks done
ethan-vanderheijden opened this issue Feb 3, 2024 · 0 comments · May be fixed by #813
Open
3 tasks done
Labels
🦠 bug Something isn't working 🧽 formatter

Comments

@ethan-vanderheijden
Copy link

ethan-vanderheijden commented Feb 3, 2024

Issue

When a file indented with tabs is formatted with --preserve-blank-lines, there are extra newlines everywhere.

How To Reproduce

This bug can be reproduced on the demo page. Paste the following lines and check Preserve Blank Space.

<div>
	<p>Welcome to djLint online!</p>
</div>

Note: the p tag is indented with a tab

Output:

<div>
	
    <p>Welcome to djLint online!</p>
</div>

There should not be an extra blank line above the p tag. The output is correct if you change the indentation of the p tag from a tab to spaces.

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

Successfully merging a pull request may close this issue.

1 participant