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

Does scadfmt support removing extra line breaks? #26

Open
paulftw opened this issue Feb 29, 2024 · 0 comments
Open

Does scadfmt support removing extra line breaks? #26

paulftw opened this issue Feb 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@paulftw
Copy link
Contributor

paulftw commented Feb 29, 2024

I'd like to use scadfmt as a prettifier.

For example, in shell:

cat <<EOT >>test.scad 
x = 
5 + 5;cube(
	3
	);
module foo(a=4){
	
	circle(a);}
EOT
yarn scadfmt test.scad

The output is:

x =
5 + 5;
cube(
3
);
module foo(a = 4) {

    circle(a);}

Expected result:

x = 5 + 5;
cube(3);
module foo(a = 4) {
  circle(a);
}

I don't see a flag to remove whitespace characters in the FormattingConfiguration, is there any other way to achieve this?

@alufers alufers added the enhancement New feature or request label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants