format edited lines