dfmt icon indicating copy to clipboard operation
dfmt copied to clipboard

dfmt add unnecessary line break

Open bubnenkoff opened this issue 9 years ago • 2 comments

string sql = (`select * from` ~ parseconfig.dbname ~ `.imgs WHERE reproj_status = "DONE"`);

becomes:

string sql = (
           `select * from` ~ parseconfig.dbname ~ `.imgs WHERE reproj_status = "DONE"`);

bubnenkoff avatar Feb 16 '16 07:02 bubnenkoff

This isn't reproducible anymore. v0.12.0-beta.2

belka-ew avatar Apr 13 '20 19:04 belka-ew

still reproducible: call:

dfmt --soft_max_line_length 70 --max_line_length 120

code:

void foo() { string sql = (`select * from` ~ parseconfig.dbname ~ `.imgs WHERE reproj_status = "DONE"`); }

output:

void foo()
{
    string sql = (
            `select * from` ~ parseconfig.dbname ~ `.imgs WHERE reproj_status = "DONE"`);
}

WebFreak001 avatar Apr 14 '20 07:04 WebFreak001