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

Closing type params whitespace is missing when last param is a struct type #588

Closed
vonagam opened this issue May 12, 2020 · 1 comment
Closed
Labels
bug Something isn't working whitespace missing or incorrect space around token

Comments

@vonagam
Copy link

vonagam commented May 12, 2020

Input file

typedef Type = Array< {key:Int} >;

Broken output

typedef Type = Array< {key:Int}>;

Expected output

typedef Type = Array< {key:Int} >;

hxformat.json

{
  "whitespace": {
    "typeParamOpenPolicy": "after",
    "typeParamClosePolicy": "before"
  }
}
@AlexHaxe AlexHaxe added bug Something isn't working whitespace missing or incorrect space around token labels May 12, 2020
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue May 12, 2020
@AlexHaxe
Copy link
Member

thanks for reporting!

see sample here: https://haxecheckstyle.github.io/haxe-formatter-docs/#codesamples.WhitespaceSamples.type_parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working whitespace missing or incorrect space around token
Projects
None yet
Development

No branches or pull requests

2 participants