Skip to content

Commit

Permalink
[INTERNAL] avoid adding line break on save if not existent before
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommer committed May 9, 2019
1 parent 4406831 commit ef2b197
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ protected String generateCsv(Object[][] data) {
result.append(this.currentSeparator);
}
}
if (CsvEditorSettingsExternalizable.getInstance().isFileEndLineBreak() || row < data.length - 1) {
if (row < data.length - 1 ||
(CsvEditorSettingsExternalizable.getInstance().isFileEndLineBreak() && getColumnInfoMap().hasEmptyLastLine())) {
result.append("\n");
}
}
Expand Down

0 comments on commit ef2b197

Please sign in to comment.