Add optimistic/pessimistic groups as a simplified implementation of next_break_fits
next_break_fits is deprecated in favor of optimistic/pessimistic groups
Module
13 changes across 4 versions
Changes by version
Add optimistic/pessimistic groups as a simplified implementation of next_break_fits
next_break_fits is deprecated in favor of optimistic/pessimistic groups
Ensure next_break_fits respects line_length
color/3 is deprecated in favor of color_doc/3
fold_doc/2 is deprecated in favor of fold/2
surround/3 is deprecated in favor of Inspect.Algebra.concat/2 and Inspect.Algebra.nest/2
surround_many/6 is deprecated in favor of container_doc/6
Add :strict and :flex breaks - this gives more control over the document fitting
Allow a group to inherit the parent group break
Add force_unfit/1 and next_break_fits/2 which give more control over document fitting
Add collapse_lines/1 for collapsing multiple lines to a maximum value
Allow nest/2 to be :reset or be set to the current :cursor position
surround/3 and surround_many/6 are deprecated in favor of container_doc/6