From ab693aecab3f9f718ef0133963fc467fb4d0f64d Mon Sep 17 00:00:00 2001 From: Chad Scira Date: Tue, 1 Nov 2016 13:33:05 +0700 Subject: [PATCH] fixed a bug related to not escaping newlines in text fields --- core/CopyAsJSON.spBundle/command.plist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/CopyAsJSON.spBundle/command.plist b/core/CopyAsJSON.spBundle/command.plist index f4f1ecd..62b5a5f 100644 --- a/core/CopyAsJSON.spBundle/command.plist +++ b/core/CopyAsJSON.spBundle/command.plist @@ -69,9 +69,10 @@ while($rowData) { print "$d"; } else { chomp($cellData); + $cellData =~ s/(?:\r)?\n/\\n/g; print "\"$cellData\""; } - + # suppress last , if($i<$h_cnt) { print ",";