Optimus.ColumnFormatter (optimus v0.5.1)

View Source

Summary

Types

align()

@type align() :: :left | :center | :right

column_spec()

@type column_spec() :: pos_integer() | {pos_integer(), align()}

Functions

format(column_specs, strings)

@spec format([column_spec()], [String.t()]) ::
  {:ok, [[String.t()]]} | {:error, String.t()}

join_and_keep_width(graphemes)

split_graphemes(graphemes, max_width, already_split)