Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Improve DataGrid CSV export (copy & paste)

Open timunie opened this issue 2 years ago • 1 comments

What does the pull request do?

Fixes some issues with DataGrid-Clipboard implementation like " and \n which were not handled acc. to specs. See: https://csv-spec.org

What is the current behavior?

  • Always wrap cell content in "[...]"
  • Replace " with "" in order to escape "

What is the updated/expected behavior with this PR?

possible to copy data with " and line breaks

How was the solution implemented (if it's not obvious)?

Checklist

  • [ ] Added unit tests (if possible)?
  • [ ] Added XML documentation to any related classes?
  • [ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

timunie avatar Jul 25 '22 08:07 timunie

You can test this PR using the following package version. 0.10.999-cibuild0022440-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Jul 25 '22 09:07 avaloniaui-team

You can test this PR using the following package version. 11.0.999-cibuild0031764-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

avaloniaui-team avatar Mar 09 '23 08:03 avaloniaui-team