/super-csv/src/main/java/org/supercsv/encoder/DefaultCsvEncoder.java
if( quotesRequiredForSurroundingSpaces || quotesRequiredForMode || quotesRequiredForSpecialChar ) {
if ( quotesRequiredForSpecialChar || quotesRequiredForMode || quotesRequiredForSurroundingSpaces ) {
currentColumn.append(c); } } final boolean quotesRequiredForMode = preference.getQuoteMode().quotesRequired(input, context, preference); final boolean quotesRequiredForSurroundingSpaces = preference.isSurroundingSpacesNeedQuotes() && input.length() > 0 && (input.charAt(0) == ' ' || input.charAt(input.length() - 1) == ' '); <extra_id_0> currentColumn.insert(0, quote).append(quote); } return currentColumn.toString(); } }