Revision: 18860
          http://sourceforge.net/p/gate/code/18860
Author:   markagreenwood
Date:     2015-08-06 09:29:18 +0000 (Thu, 06 Aug 2015)
Log Message:
-----------
allowed whitespace to appear after a , in the column field to make it easier to 
format the batch.xml

Modified Paths:
--------------
    gate/trunk/plugins/Format_CSV/gcp/csv4gcp.jar
    
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingOutputHandler.java

Modified: gate/trunk/plugins/Format_CSV/gcp/csv4gcp.jar
===================================================================
(Binary files differ)

Modified: 
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingOutputHandler.java
===================================================================
--- 
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingOutputHandler.java
      2015-08-06 07:56:41 UTC (rev 18859)
+++ 
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingOutputHandler.java
      2015-08-06 09:29:18 UTC (rev 18860)
@@ -1,3 +1,17 @@
+/*
+ * CSVStreamingOutputHandler.java
+ * 
+ * Copyright (c) 2015, The University of Sheffield. See the file COPYRIGHT.txt
+ * in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ * 
+ * This file is part of GATE (see http://gate.ac.uk/), and is free software,
+ * licenced under the GNU Library General Public License, Version 2, June 1991
+ * (in the distribution as file licence.html, and also available at
+ * http://gate.ac.uk/gate/licence.html).
+ * 
+ * Mark A. Greenwood, 5/08/2015
+ */
+
 package gate.cloud.io.csv;
 
 import static gate.cloud.io.IOConstants.PARAM_ENCODING;
@@ -56,7 +70,7 @@
     separatorChar = configData.get(PARAM_SEPARATOR_CHARACTER).charAt(0);
     quoteChar = configData.get(PARAM_QUOTE_CHARACTER).charAt(0); 
     
-    columns = configData.get(PARAM_COLUMNS).split(",");
+    columns = configData.get(PARAM_COLUMNS).split(",\\s*");
     
     annotationSetName = configData.get(PARAM_ANNOTATION_SET_NAME);
     annotationType = configData.get(PARAM_ANNOTATION_TYPE);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to