Skip to content

to_clipboard wrong linebreaks on Windows #11720

Open
@Winand

Description

@Winand

Copying dataframe with to_clipboard and Qt gives different results: when pasted to Excel there's one more empty line. It may be unexpected and overwrite important data.

When looking into clipboard with Free Clipboard Viewer we can see that Qt uses CR+LF linebreaks:
image
and pandas uses LF:
image
Maybe this is the source of problem.

(This isn't fixed by #9693)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions