Format line numbers