fun print(output: PrintStream, lineWidth: Int = DEFAULT_LINE_WIDTH, ansi: Boolean = false)
Content copied to clipboard
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.
Renders the document as a String.