You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2019/06/16 16:07:06 UTC

[commons-csv] branch master updated: Show quote mode if not null

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git


The following commit(s) were added to refs/heads/master by this push:
     new 53fa8ad  Show quote mode if not null
53fa8ad is described below

commit 53fa8ad35692437c9995117d1e59fd6146997e30
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jun 16 17:07:02 2019 +0100

    Show quote mode if not null
---
 src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java
index 4c2540e..4e5dfec 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -1595,6 +1595,10 @@ public final class CSVFormat implements Serializable {
             sb.append(' ');
             sb.append("QuoteChar=<").append(quoteCharacter).append('>');
         }
+        if (quoteMode != null) {
+            sb.append(' ');
+            sb.append("QuoteMode=<").append(quoteMode).append('>');            
+        }
         if (isCommentMarkerSet()) {
             sb.append(' ');
             sb.append("CommentStart=<").append(commentMarker).append('>');