-
-
Notifications
You must be signed in to change notification settings - Fork 44
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: Blank lines contain spaces in inline syntax #171
Comments
Hi @yuheiy So I think I know were this is coming from The red part is the whole indentation of the code from pug and the green part is the indented-managed part from js So we have to iterate over the formatted lines and check where blank lines occur and the remove the indentation in the red part 🤔 Are you willing to create a PR for that? Lines 1080 to 1186 in 1c7af90
You can extend this test https://github.com/prettier/plugin-pug/tree/main/tests/issues/issue-158 or create a new one I'm currently into Cyberpunk 2077 😛 so if I should work on this, it could take some days |
@yuheiy I'm so sorry for you that I currently also taking holiday from GitHub 😅 So tldr: I think I will come back to GitHub in January Have a greate time and stay safe 😃 |
Oh my god, I'm so sorry for you @yuheiy that I let you wait so long 🤣 But I will let make a co-worker a review on this so I don't miss anything, but you can expect a release of |
Great! Thank you so much! |
There it is ❤️ https://www.npmjs.com/package/@prettier/plugin-pug/v/1.13.2 |
Info
Prettier config
I’m using the default config.
Input
The 4th line contains no spaces.
Output or Error
The 4th line contains spaces.
Expected Output
The text was updated successfully, but these errors were encountered: