gui: For text data import, use the same parser for preview as for import.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 28 May 2022 01:29:20 +0000 (18:29 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 28 May 2022 01:32:23 +0000 (18:32 -0700)
commit453a25eb0d3ef50989735fc68ae3f17e5b318c8c
tree826a01fd295f72d3c13e1c8c4ab7f05215d9a60b
parent4f3cf328723cf70c06702904e85768d6601918a2
gui: For text data import, use the same parser for preview as for import.

There were odd discrepancies between the preview code in the GUI for
text data import and the code in GET DATA /TYPE=TXT that implemented the
eventual import.  This commit unifies the two parsers, dropping the one
that was used only for preview.  This should prevent further discrepancies.

Bug #61809.
Thanks to Friedrich Beckmann for reporting this bug.
src/language/data-io/data-parser.c
src/language/data-io/data-parser.h
src/ui/gui/psppire-delimited-text.c
src/ui/gui/psppire-delimited-text.h