react-spreadsheet icon indicating copy to clipboard operation
react-spreadsheet copied to clipboard

Delete trailing new line character from pasted text

Open nullnull opened this issue 3 years ago • 2 comments

Problem

When copying single empty cell from Google Spreadsheet (or copy some values from Excel), pasting result includes extra empty row.

Cause

Because copied value from Google Spreadsheet's empty cell is "\n".

Solution

I think it's better to delete trailing new line character from pasted text.

nullnull avatar Jul 16 '21 07:07 nullnull

@nullnull can you please fix my comments so I can merge your PR?

iddan avatar Jul 26 '21 15:07 iddan

@iddan Sorry for late reply. I've fixed it!

nullnull avatar Aug 21 '21 01:08 nullnull