From 7a18bb8ace4bc7a639a1db92826fa16097fda803 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sat, 16 Apr 2016 15:12:29 +0300 Subject: [PATCH] Fix File.get_csv_line not including quoted newlines in the output Close #1232 --- core/os/file_access.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 0846ef3eb03..a3ee9395de3 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -284,7 +284,7 @@ Vector FileAccess::get_csv_line(String delim) const { String l; int qc=0; do { - l+=get_line(); + l+=get_line()+"\n"; qc=0; for(int i=0;i FileAccess::get_csv_line(String delim) const { } while (qc%2); + l=l.substr(0, l.length()-1); + Vector strings; bool in_quote=false;