https://bugs.freedesktop.org/show_bug.cgi?id=60468

--- Comment #9 from Matthias Wieser <hiasl...@gmail.com> ---
I guess the file sc/source/ui/docshell/impex.cxx has an error.

Ehm, somebody has programmed this error on intention.
Line 2330:
if (nQuotes)
                {
                    if (bTabSep && *p == '\t' && (nQuotes % 2) != 0)
                    {
                        // When tab-delimited, tab char ends quoted sequence
                        // even if we haven't reached the end quote.  Doing
                        // this helps keep mal-formed rows from damaging
                        // other, well-formed rows.
                        nQuotes = 0;
                        break;
                    }

Well, that heuristic will not work with a correct file.

The author was Caolán McNamara <caol...@redhat.com> of
17fe34ec569f3e14f35f3958cc5885a00bd6cff9.

The correct way to have such a processor in place: parse file, if not
correct(User decission!!!) enable workaround.

This error needs more steps:
  * Change in the UI (maybe "strict mode").
  * Change of the code there (if (bTabSep && *p == '\t' && (nQuotes % 2) != 0
&& (!strictCSVImportMode))

That is my idea to solve this error.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to