2
0
Эх сурвалжийг харах

wrong double quote output with .csv fixed

Alf Kraus 4 жил өмнө
parent
commit
68fdd753a7

+ 1 - 1
core/os/file_access.cpp

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