print

fun print(output: PrintStream, lineWidth: Int = DEFAULT_LINE_WIDTH, ansi: Boolean = false)

Renders this document as a string and writes it to output. Each line of the output will be under lineWidth characters if possible. If ansi is true, ANSI escape codes are output to style the document according to the Style annotations in the document.


fun print(lineWidth: Int = DEFAULT_LINE_WIDTH): String

Renders the document as a String.

See also