View Source Optimus.ColumnFormatter (optimus v0.4.0)

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function

format(column_specs, strings)

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

join_and_keep_width(graphemes)

View Source
Link to this function

split_graphemes(graphemes, max_width, already_split)

View Source