diff --git a/app/transformation/CsvExport.java b/app/transformation/CsvExport.java index b1b4acc..aaa9f10 100644 --- a/app/transformation/CsvExport.java +++ b/app/transformation/CsvExport.java @@ -54,8 +54,8 @@ public String of(final String fields, final String separator) { try { Object value = JsonPath.read(Configuration.defaultConfiguration() .jsonProvider().parse(org.toString()), "$." + field); - return String.format("\"%s\"", - value.toString().replaceAll("\"", "\"\"")); + return separator==DEFAULT_SEPARATOR ? String.format("\"%s\"", + value.toString().replaceAll("\"", "\"\"")) : value.toString(); } catch (PathNotFoundException x) { Logger.trace(x.getMessage());