summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2011-08-31 14:54:50 +0000
committerUrban Müller2011-08-31 14:54:50 +0000
commite869a83340f2e16028916cbeb39b831b6fabef5b (patch)
treec49371fe1424669432772fd451a1ab74ed4f736f
parent7cc8afc5c9a49dce391d786edf521d86f158de0f (diff)
downloaditools-e869a83340f2e16028916cbeb39b831b6fabef5b.tar.gz
itools-e869a83340f2e16028916cbeb39b831b6fabef5b.tar.bz2
itools-e869a83340f2e16028916cbeb39b831b6fabef5b.zip
allow blanks before schema
-rw-r--r--it_pipe.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_pipe.class b/it_pipe.class
index 34ab74d..c7ef023 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -147,7 +147,7 @@ function csv()
{
$counts = count_chars($this->lines[0]);
$splitchar = $counts[ord("\t")] ? "\t" : ($counts[ord(";")] > $counts[ord(",")] ? ";" : ",");
- $schema = str_getcsv(trim(array_shift($this->lines), "#\n"), $splitchar, '"'); # could do a function_exists('str_getcsv') here...
+ $schema = str_getcsv(trim(array_shift($this->lines), "#\n "), $splitchar, '"'); # could do a function_exists('str_getcsv') here...
$oldlocale = setlocale(LC_CTYPE, 'de_CH.iso-8859-1');