From 593f54862b2036423f2ac4db3b8c2176348c30a3 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Fri, 6 Oct 2023 14:49:35 +0200 Subject: [PATCH] WIP --- app/transformation/CsvExport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());