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

Delete trailing newline character from pasted text

Open alexis-lanoix-sixthfin opened this issue 2 years ago • 0 comments

Basically a repost of #140 with added test.

Problem

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

Solution

Removing trailing new line from pasted text.

I think it could be merged quickly because this is pretty straightforward and kind of a showstopper for using Excel or Google Sheets alongside this library.

Thanks! 😃

alexis-lanoix-sixthfin avatar Jan 30 '24 14:01 alexis-lanoix-sixthfin