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

sometimes long line inside calls will add wrong extra new line #559

Open
WebFreak001 opened this issue Jul 2, 2022 · 1 comment
Open
Labels
bug feature:keep_line_breaks Issues related to the keep_line_breaks command line flag

Comments

@WebFreak001
Copy link
Member

WebFreak001 commented Jul 2, 2022

auto x = Foo(
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, // foo
);

gets formatted (keep_line_breaks) to

auto x = Foo(
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, // foo

);

gets formatted (keep_line_breaks) to

auto x = Foo(
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, // foo

        

);
@WebFreak001 WebFreak001 added bug feature:keep_line_breaks Issues related to the keep_line_breaks command line flag labels Jul 2, 2022
@myOmikron
Copy link

module dorm.test.awdawd;

Migration newMigration = Migration(
    hash, true, "0001_initial", "", [], [
        serializedModels.models.map!((x) {
            return AnnotationType(

            ); 
        })
    ]
);

gets formatted to, so the comment isn't necessary:

module dorm.test.awdawd;

Migration newMigration = Migration(
    hash, true, "0001_initial", "", [], [
        serializedModels.models.map!((x) { return AnnotationType(

            

        ); })
    ]
);

@WebFreak001 WebFreak001 changed the title comment after long line inside calls will add wrong extra new line sometimes long line inside calls will add wrong extra new line Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature:keep_line_breaks Issues related to the keep_line_breaks command line flag
Projects
None yet
Development

No branches or pull requests

2 participants