Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

复制的时候会把换行忽略掉 #105

Open
wofbi opened this issue May 15, 2023 · 4 comments
Open

复制的时候会把换行忽略掉 #105

wofbi opened this issue May 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@wofbi
Copy link

wofbi commented May 15, 2023

比如, 我在复制这样一个的内容的时候:

A simple and easy-to-use markdown rendering component.
Supports TOC (Table of Contents) function for quick location through Headings
Supports code highlighting
Supports all platforms

会变成:

A simple and easy-to-use markdown rendering component.Supports TOC (Table of Contents) function for quick location through HeadingsSupports code highlightingSupports all platforms

想想这个功能实现起来也确实很麻烦. 但是我发现代码块里的换行可以正确复制粘贴, 不过我没有深入研究, 不知道大家对这个有什么看法?

@wofbi wofbi added the bug Something isn't working label May 15, 2023
@asjqkkkk
Copy link
Owner

@wofbi 你好,这个issue与#95属于重复的issue,这个问题在flutter仓库已经有人提过,可能需要等待官方提供一个解决方案 flutter/flutter#104548

asjqkkkk added a commit that referenced this issue May 18, 2023
asjqkkkk added a commit that referenced this issue May 18, 2023
asjqkkkk added a commit that referenced this issue May 18, 2023
asjqkkkk added a commit that referenced this issue May 18, 2023
@asjqkkkk
Copy link
Owner

@wofbi 你好,在 v2.2.0 通过每行末尾加上 \r 修复了这个问题,目前版本正在发布中,等待发布完成可以进行尝试

@asjqkkkk asjqkkkk reopened this Oct 13, 2023
@MonolithFoundation
Copy link

Hi, I found this issue could be still perssist.

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2024

Hi @MonolithFoundation , in v2.2.0, line breaks were achieved by adding /r after each Node. However, this wasn't a conventional solution and introduced new issues. Therefore, this modification has been removed in subsequent updates.

The issue regarding "copying" persists due to the current use of SelectionArea, which leads to problems with line breaks. It may be necessary to wait for any corresponding solutions from the official source in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants