Auto Format documents