GithubHelp home page GithubHelp logo

Comments (4)

cgrushko avatar cgrushko commented on July 27, 2024 1

Thanks for the report! we'll take a look soon.
(I love that you considered and gave examples for multiple cases)

from ktfmt.

JavierSegoviaCordoba avatar JavierSegoviaCordoba commented on July 27, 2024

I think there is another case where the arrow makes a break line alone. IMO in that case the parameter should be in the same line than the arrow.

from ktfmt.

JavierSegoviaCordoba avatar JavierSegoviaCordoba commented on July 27, 2024

Another example, test is cut instead of format as chained calls with a break-line for each one:

image

It is strange because if I change the Eagerly enum to do not use the import so the sentence is a bit longer it is correctly formatted:

image

Maybe this is not the same problem but can be related.

from ktfmt.

hick209 avatar hick209 commented on July 27, 2024

As of v0.44 it is formatting as you suggested in the intro post
image

And for your last example, it now formats as this with 80 columns
image

And this with 100 columns
image

I'm closing the issue here mostly because it's old and it looks like it's solved.
Feel free to reopen @JavierSegoviaCordoba

from ktfmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.