pub fn render(doc: Box<Doc>, tab: usize, width: usize) -> StringExpand description
A function for rendering documents, takes a Box<Doc>, a tab indentation size and a output buffer target width, and gives a String.
Examples
use typeset::{text, comp, compile, render};
let layout = comp(text("foo"), text("bar"), false, false);
let document = compile(layout);
println!(render(document, 2, 80));