Companion

object Companion

Functions

Link copied to clipboard
operator fun invoke(): Document

Returns the empty document. The empty document behaves the same as Document(""), which means it has a height of 1, not 0. For example,

operator fun invoke(text: String): Document

Returns the document containing text converting all line breaks to lineBreak. Note that lineBreak may be undone by grouped:

Properties

Link copied to clipboard

Like lineBreak but always starts a new line. A forcedLineBreak is never removed or replaced, even when PrettyPrintable.grouped and there is plenty of space.

Link copied to clipboard

A line break advances to the next line and indents to the current nesting level.