Tabify document content