paragraph formatting to index