FileAccess::store_csv_line() don't added unnecessary double quotes.
This commit is contained in:
parent
11d7738622
commit
eacb8600f4
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ void FileAccess::store_csv_line(const Vector<String> &p_values, const String &p_
|
|||
for (int i = 0; i < size; ++i) {
|
||||
String value = p_values[i];
|
||||
|
||||
if (value.find("\"") != -1 || value.find(p_delim) != -1 || value.find("\n")) {
|
||||
if (value.find("\"") != -1 || value.find(p_delim) != -1 || value.find("\n") != -1) {
|
||||
value = "\"" + value.replace("\"", "\"\"") + "\"";
|
||||
}
|
||||
if (i < size - 1) {
|
||||
|
|
Loading…
Reference in a new issue