format a line