Whitespace and quotechar in database module
Hi, the following two database examples produce different output due to the white space between the field separator and the quotechar. \usemodule [database] \defineseparatedlist [CSV] [quotechar=", before={\starttabulate[|l|l|]}, after=\stoptabulate, first=\NC,last=\NR, left=,right=\NC] \starttext \startCSV alpha, loremloremlorem beta,"ipsum, ipsum, ipsum" \stopCSV \startCSV alpha, loremloremlorem beta, "ipsum, ipsum, ipsum" \stopCSV \stoptext Can the parser be made tolerant to this space? Marco
On 12/18/2012 9:20 AM, Marco Patzer wrote:
Hi,
the following two database examples produce different output due to the white space between the field separator and the quotechar.
\usemodule [database]
\defineseparatedlist [CSV] [quotechar=", before={\starttabulate[|l|l|]}, after=\stoptabulate, first=\NC,last=\NR, left=,right=\NC]
\starttext
\startCSV alpha, loremloremlorem beta,"ipsum, ipsum, ipsum" \stopCSV
\startCSV alpha, loremloremlorem beta, "ipsum, ipsum, ipsum" \stopCSV
\stoptext
Can the parser be made tolerant to this space?
only before/after quote I assume ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Marco Patzer