prettify document