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

need to format indent for multi-fields-object in dictionary #95

Closed
po-miyasaka opened this issue Mar 22, 2020 · 1 comment · Fixed by #96
Closed

need to format indent for multi-fields-object in dictionary #95

po-miyasaka opened this issue Mar 22, 2020 · 1 comment · Fixed by #96
Assignees

Comments

@po-miyasaka
Copy link
Collaborator

po-miyasaka commented Mar 22, 2020

As is

  • Indent of object with multifields in dectionary is the following.
    The indent depends on keyname's length.
"dog-1": Dog(
    dict: [
        "apple": AppleJuice(
                              price: 100,
                              sale: true
                       ) ,
        "pi": PI(
                     price: 100,
                     sale: true
        ) 
    ]
),

To be

It should depends on "Debug.Option.indent".
It makes fields be easier to read.

"dog-1": Dog(
    dict: [
        "apple": AppleJuice(
              price: 100,
              sale: true
        ) ,
        "pi": PI(
              price: 100,
              sale: true
         ) 
    ]
),
@YusukeHosonuma
Copy link
Owner

Note: enum and tuple that has label are also too.

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

Successfully merging a pull request may close this issue.

2 participants