emit_line(): don't emit an empty <SET><RESET> followed by a newline