optimus v0.1.10 Optimus.ColumnFormatter

Link to this section Summary

Link to this section Types

Link to this type

align()

align() :: :left | :center | :right
Link to this type

column_spec()

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

Link to this section Functions

Link to this function

format(column_specs, strings)

format([column_spec()], [String.t()]) ::
  {:ok, [[String.t()]]} | {:error, String.t()}
Link to this function

join_and_keep_width(graphemes)

Link to this function

split_graphemes(graphemes, max_width, already_split)