package textwrap

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Text wrapping and filling for OCaml.

type t = {
  1. width : int;
  2. initial_indent : string;
  3. subsequent_indent : string;
  4. expand_tabs : bool;
  5. replace_whitespace : bool;
  6. fix_sentence_endings : bool;
  7. break_long_words : bool;
  8. break_on_hyphens : bool;
  9. drop_whitespace : bool;
}
val make : ?initial_indent:string -> ?subsequent_indent:string -> ?expand_tabs:bool -> ?replace_whitespace:bool -> ?fix_sentence_endings:bool -> ?break_long_words:bool -> ?break_on_hyphens:bool -> ?drop_whitespace:bool -> int -> t
val wrap : t -> string -> string list
val fill : t -> string -> string
OCaml

Innovation. Community. Security.