Browse Source

wrong double quote output with .csv fixed

(cherry picked from commit 68fdd753a796bec711cd5caa0933ac2f0f125aca)
Alf Kraus 4 years ago
parent
commit
70fc0d45f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/file_access.cpp

+ 1 - 1
core/os/file_access.cpp

@@ -379,7 +379,7 @@ Vector<String> FileAccess::get_csv_line(const String &p_delim) const {
 			strings.push_back(current);
 			current = String();
 		} else if (c == '"') {
-			if (l[i + 1] == '"') {
+			if (l[i + 1] == '"' && in_quote) {
 				s[0] = '"';
 				current += s;
 				i++;