Pārlūkot izejas kodu

Merge pull request #44294 from GoDino/issue_44269

wrong double quote output with .csv fixed
Rémi Verschelde 4 gadi atpakaļ
vecāks
revīzija
146316c441
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/os/file_access.cpp

+ 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);
 			current = String();
 		} else if (c == '"') {
-			if (l[i + 1] == '"') {
+			if (l[i + 1] == '"' && in_quote) {
 				s[0] = '"';
 				current += s;
 				i++;