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

Extra Whitespace Between Blocks #16

Open
chriscoyier opened this issue Feb 22, 2024 · 1 comment
Open

Extra Whitespace Between Blocks #16

chriscoyier opened this issue Feb 22, 2024 · 1 comment

Comments

@chriscoyier
Copy link

.example
  color red





.example2
  color blue

Processes leaving the same amount of space. Prettier in other languages collapses the extra unnecessary extra lines. Not sure if that's possible in Stylus because of the white space sensitivity, just feels weird.

@lsdsjy
Copy link
Owner

lsdsjy commented Jan 24, 2025

In fact it's a feature to keep the same amount of blank lines, see:

function preserveBlankLines(text: string) {

but it's good if we can have an option to opt-out of this behavior. I'll have a look at it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants