Format doc