From 625ce847e4f33b912da27b1e0859b80da05a3848 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Tue, 30 Apr 2013 18:57:23 -0400 Subject: [PATCH] fix for bin extension not being set in Table --- core/src/processing/data/Table.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/processing/data/Table.java b/core/src/processing/data/Table.java index 397f68afb..cf2589582 100644 --- a/core/src/processing/data/Table.java +++ b/core/src/processing/data/Table.java @@ -276,18 +276,16 @@ public class Table { extension = "csv"; } else if (opt.equals("ods")) { extension = "ods"; - } else if (opt.equals("newlines")) { awfulCSV = true; - + extension = "csv"; } else if (opt.equals("bin")) { binary = true; + extension = "bin"; } else if (opt.equals("header")) { header = true; - } else if (opt.startsWith(sheetParam)) { worksheet = opt.substring(sheetParam.length()); - } else { throw new IllegalArgumentException("'" + opt + "' is not a valid option for loading a Table"); }