Reformat lines for router