Copied text has frequent line breaks inserted when pasted into Notion
Categories
(Web Compatibility :: Site Reports, defect, P2)
Tracking
(Webcompat Score:5, Webcompat Priority:P2)
People
(Reporter: keesmail, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: webcompat:platform-bug, webcompat:site-report)
User Story
platform:windows,mac,linux impact:annoyance configuration:general affects:all branch:release diagnosis-team:dom user-impact-score:200
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Steps to reproduce:
Copy one or more paragraphs from an article with embedded links (this seems to be key) and paste it into a Notion page (on the web version on Firefox or Chrome or the Notion desktop app). I'm not sure if other websites have this issue too.
Actual results:
Line breaks will be inserted, sometimes near links but at other points as well.
Expected results:
When copying the text in Chrome, no extra line breaks are inserted.
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 2•27 days ago
|
||
(I am going to take a look this one)
Comment 3•27 days ago
|
||
It's because the html serializer wraps long lines at 72 characters by default, https://searchfox.org/mozilla-central/rev/584b344830aa2558985675b99aaadbb915402caa/dom/serializers/nsDocumentEncoder.cpp#558.
Updated•27 days ago
|
Comment 4•27 days ago
|
||
Oh, I forgot to mention, the new pasted content in Notion page has white-space: break-spaces;
as well, and if I disable the white-space: break-spaces;
from DevTools, the content displays as expected (no line break). So this must be related to bug 1498271.
I'm not sure if it's bad to add a comment just to ask, but I'm wondering if any progress has been made on this.
Description
•