Kaydet (Commit) b44a402d authored tarafından Eike Rathke's avatar Eike Rathke

resolved fdo#53325 CSV space delimiter and quoted field

CSV import didn't recognize end of field if a field was quoted and the
delimiter was space.

Change-Id: I46de608d545011437fe8a298854c134d6cf54b6b
üst c767178b
......@@ -571,7 +571,10 @@ static QuoteType lcl_isFieldEndQuote( const sal_Unicode* p, const sal_Unicode* p
// Due to broken CSV generators that don't double embedded quotes check if
// a field separator immediately or with trailing spaces follows the quote,
// only then end the field, or at end of string.
while (p[1] == ' ')
const sal_Unicode cBlank = ' ';
if (p[1] == cBlank && ScGlobal::UnicodeStrChr( pSeps, cBlank))
return FIELDEND_QUOTE;
while (p[1] == cBlank)
++p;
if (!p[1] || ScGlobal::UnicodeStrChr( pSeps, p[1]))
return FIELDEND_QUOTE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment