julia-vscode / DocumentFormat.jl

Auto-formatter for Julia
Other
62 stars 18 forks source link

Spaces after comma in function declaration should be removed #51

Closed davidanthoff closed 2 years ago

davidanthoff commented 4 years ago

For example, function foo(x, y) should be turned into foo(x, y)

ZacLN commented 4 years ago

Not quite sure I understand this given your example code?

waldyrious commented 4 years ago

It seems like GitHub's markdown processor is collapsing multiple spaces inside code blocks — see https://github.com/commonmark/commonmark-spec/issues/532.

For example, if I add multiple spaces between x and y, the spaces are preserved in code blocks, but not in inline code spans:

function foo(x,          y)

function foo(x, y)

In any case, the title of the issue could be clearer by specifying that only extra spaces (not all spaces) should be removed.

ZacLN commented 4 years ago

Ah, gotcha!

davidanthoff commented 4 years ago

Yes, that is what I meant :)