Module Inline.Break

Hard and soft breaks

type type' = [
  1. | `Hard
  2. | `Soft
]

The type for types of line breaks.

type t

The type for hard and soft line breaks.

val make : ?layout_before:Layout.string node -> ?layout_after:Layout.blanks node -> type' -> t

make type' is a new break of type type'. Layout values default to Layout.empty.

val type' : t -> type'

type' b is the type of b.

val layout_before : t -> Layout.string node

layout_before b is the layout before the newline, spaces or possibly '\' for hard breaks.

val layout_after : t -> Layout.blanks node

layout_after are blanks on the new block line.