domluna / JuliaFormatter.jl

An opinionated code formatter for Julia. Plot twist - the opinion is your own.

Home Page:https://domluna.github.io/JuliaFormatter.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Right-justify array literals within "blocks"

ParadaCarleton opened this issue · comments

Arrays should be formatted like this, to resemble tables:

[
	10	2.0;
	 5	8.3;
]

Instead of like this:

[
	10 2;
	5 8.3;
]
julia> format_text(s, align_matrix=true) |> print
[
    10        2.0
     5        8.3
]

with your original input