From 1d99ed5cb973c9623ce659cdc757ced190698ae0 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 9 Apr 2015 11:09:56 +0100 Subject: [PATCH] Export unquoted CSV fields when possible #8 --- Assets/Fungus/Flowchart/Scripts/CSVSupport.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Fungus/Flowchart/Scripts/CSVSupport.cs b/Assets/Fungus/Flowchart/Scripts/CSVSupport.cs index 95921102..ef964fde 100644 --- a/Assets/Fungus/Flowchart/Scripts/CSVSupport.cs +++ b/Assets/Fungus/Flowchart/Scripts/CSVSupport.cs @@ -19,8 +19,8 @@ namespace Fungus if ( s.Contains( QUOTE ) ) s = s.Replace( QUOTE, ESCAPED_QUOTE ); - //if ( s.IndexOfAny( CHARACTERS_THAT_MUST_BE_QUOTED ) > -1 ) - s = QUOTE + s + QUOTE; + if ( s.IndexOfAny( CHARACTERS_THAT_MUST_BE_QUOTED ) > -1 ) + s = QUOTE + s + QUOTE; return s; } @@ -42,7 +42,7 @@ namespace Fungus private const string QUOTE = "\""; private const string ESCAPED_QUOTE = "\"\""; - // private static char[] CHARACTERS_THAT_MUST_BE_QUOTED = { ',', '"', '\n' }; + private static char[] CHARACTERS_THAT_MUST_BE_QUOTED = { ',', '"', '\n' }; } }