# HG changeset patch # User Andre Heinecke # Date 1475671386 -7200 # Node ID 9e3c05a03a6faa863e9cc8cd0c39fec134fc7420 # Parent f3481e9e44b263171128de370ad3b7d6698d8f04 Check for double newline in unquoted strings diff -r f3481e9e44b2 -r 9e3c05a03a6f src/converter.cpp --- a/src/converter.cpp Wed Oct 05 14:28:53 2016 +0200 +++ b/src/converter.cpp Wed Oct 05 14:43:06 2016 +0200 @@ -407,6 +407,10 @@ const QString lastRow = xlsx.read(row - 1, 26).toString(); int unquotedLen = textMatch.capturedStart() - cursor; const QString unquoted = input.mid(cursor, unquotedLen); + if (unquoted.startsWith("\n\n")) { + qDebug() << "Double newline outside quote. Assuming a question follows."; + break; + } qDebug() << "Found inner quoted string: " << unquoted; /* Now combine */ QString combined = QString("%1\"%2\"%3").arg(lastRow).