pluto_grid icon indicating copy to clipboard operation
pluto_grid copied to clipboard

paste issue

Open hamzaj9 opened this issue 3 years ago • 0 comments

when you copy from excel and paste, excel will add one more \n at the end with no values i think you should trim the text before you run over it your bug is here (manager/pluto_grid_key_manager.dart) in "_handleCtrlV" function:

Clipboard.getData('text/plain').then((value) {
      List<List<String>> textList =
          PlutoClipboardTransformation.stringToList(value!.text!);

you should use:

 PlutoClipboardTransformation.stringToList(value!.text!.trim());

hamzaj9 avatar Feb 15 '22 12:02 hamzaj9