Mono-D icon indicating copy to clipboard operation
Mono-D copied to clipboard

indentation of multiline string literal concatenation

Open kunftep opened this issue 7 years ago • 0 comments

pasting/formatting the following code creates odd indentation, as shown here:

string sql = "select " ~ 
	"p1.phrase as phrase1 " ~ 
		", p2.phrase as phrase2 " ~ 
		"from phrase as p1, phrase as p2, translation as t " ~ 
		"where t.phrase1_id = p1.id and t.phrase2_id = p2.id";

shouldn't line 2 - 5 have all one and the same level of indentation like this:

string sql = "select " ~ 
	"p1.phrase as phrase1 " ~ 
	", p2.phrase as phrase2 " ~ 
	"from phrase as p1, phrase as p2, translation as t " ~ 
	"where t.phrase1_id = p1.id and t.phrase2_id = p2.id";

kunftep avatar Mar 25 '18 09:03 kunftep