Module

Inspect.Algebra

Changes by version

Elixir 1.19.0

· 2 changes

Enhancement Tool: Elixir

Add optimistic/pessimistic groups as a simplified implementation of next_break_fits

Soft Deprecation Tool: Elixir

next_break_fits is deprecated in favor of optimistic/pessimistic groups

Elixir 1.18.0

· 3 changes

Bugfix Tool: Elixir

Ensure next_break_fits respects line_length

Enhancement Tool: Elixir

color/3 is deprecated in favor of color_doc/3

Enhancement Tool: Elixir

fold_doc/2 is deprecated in favor of fold/2

Elixir 1.8.0

· 2 changes

Enhancement Tool: Elixir

surround/3 is deprecated in favor of Inspect.Algebra.concat/2 and Inspect.Algebra.nest/2

Enhancement Tool: Elixir

surround_many/6 is deprecated in favor of container_doc/6

Elixir 1.6.0

· 6 changes

Enhancement Tool: Elixir

Add :strict and :flex breaks - this gives more control over the document fitting

Enhancement Tool: Elixir

Allow a group to inherit the parent group break

Enhancement Tool: Elixir

Add force_unfit/1 and next_break_fits/2 which give more control over document fitting

Enhancement Tool: Elixir

Add collapse_lines/1 for collapsing multiple lines to a maximum value

Enhancement Tool: Elixir

Allow nest/2 to be :reset or be set to the current :cursor position

Enhancement Tool: Elixir

surround/3 and surround_many/6 are deprecated in favor of container_doc/6