Fix File.get_csv_line not including quoted newlines in the output
Close #1232
(cherry picked from commit 7a18bb8ace
)
This commit is contained in:
parent
e654184888
commit
ff1d370b9f
|
@ -284,7 +284,7 @@ Vector<String> 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<l.length();i++) {
|
||||
|
||||
|
@ -295,6 +295,8 @@ Vector<String> FileAccess::get_csv_line(String delim) const {
|
|||
|
||||
} while (qc%2);
|
||||
|
||||
l=l.substr(0, l.length()-1);
|
||||
|
||||
Vector<String> strings;
|
||||
|
||||
bool in_quote=false;
|
||||
|
|
Loading…
Reference in New Issue