Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Multi row copy/paste inserts '\r' on paste for the last selected column #88

@Marc-Andre-Rivet

Description

@Marc-Andre-Rivet

Found while working on Issue #75.

Select at least two rows of cells and copy paste -- the inner html of the cell-value element contains pending '\r' that was inserted by our custom copy logic here:

    const value = R.slice(
        R.head(selectedRows) as any,
        R.last(selectedRows) as any + 1,
        dataframe
    ).map(row =>
        R.props(selectedCols, R.props(R.pluck('id', columns) as any, row) as any)
    ).map(row => R.values(row).join('\t')
    ).join('\r\n');

SheetClip provides a stringify function along with the parse function, we should use that instead of our custom logic.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions