My copy & paste works well for Nattables. Problem comes, if some cell contains line separator. When I paste data, line separator is taken as a row separator and structure of my table is destructed.
In CopyDataToClipboardCommand.class
:
public CopyDataToClipboardCommand(String cellDelimeter,
String rowDelimeter, IConfigRegistry configRegistry) {
this.cellDelimeter = cellDelimeter;
this.rowDelimeter = rowDelimeter;
this.configRegistry = configRegistry;
}
cellDelimeter is set to \t
and rowDelimeter is set to \r\n
.
Inside problematic cells is new line set with \n
. Any idea about this?