make document output pretty printed