Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

waterfall like formatting of curly brackets #207

Open
tobiasschuerg opened this issue Jan 23, 2022 · 0 comments
Open

waterfall like formatting of curly brackets #207

tobiasschuerg opened this issue Jan 23, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tobiasschuerg
Copy link

tobiasschuerg commented Jan 23, 2022

this is what I get running this formatter:

server {
  if ($host = www.foo.bar) {
    return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = xxx.foo.bar) {
      return 301 https://$host$request_uri;
      } # managed by Certbot


      if ($host = foo.bar) {
        return 301 https://$host$request_uri;
        } # managed by Certbot


        server_name foo.bar www.foo.bar xxx.foo.bar;
        listen 80;
        return 404; # managed by Certbot
      }

this is what I would expect instead:

 server {
  if ($host = www.foo.bar) {
    return 301 https://$host$request_uri;
  } # managed by Certbot


  if ($host = xxx.foo.bar) {
    return 301 https://$host$request_uri;
  } # managed by Certbot


  if ($host = foo.bar) {
    return 301 https://$host$request_uri;
  } # managed by Certbot


  server_name foo.bar www.foo.bar xxx.foo.bar;
  listen 80;
  return 404; # managed by Certbot
}

Is this intendet?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants