Merge pull request #4337 from bojidar-bg/translation-csv-newlines

Fix File.get_csv_line not including quoted newlines in the output
This commit is contained in:
Rémi Verschelde 2016-04-16 14:45:50 +02:00
commit c04b3edac4

View File

@ -284,7 +284,7 @@ Vector<String> FileAccess::get_csv_line(String delim) const {
String l; String l;
int qc=0; int qc=0;
do { do {
l+=get_line(); l+=get_line()+"\n";
qc=0; qc=0;
for(int i=0;i<l.length();i++) { for(int i=0;i<l.length();i++) {
@ -295,6 +295,8 @@ Vector<String> FileAccess::get_csv_line(String delim) const {
} while (qc%2); } while (qc%2);
l=l.substr(0, l.length()-1);
Vector<String> strings; Vector<String> strings;
bool in_quote=false; bool in_quote=false;