Extra "newline" symbol when pasting text

AI 生成的摘要

Maestra_Powers reported a bug in OneBox where pasting text that ends with a space results in an extra newline character being inserted. They clarified that the issue is specific to pasting into OneBox, as pasting into standard text editors works correctly, and confirmed the behavior occurs in the latest version of Firefox. To reproduce the issue, they provided a step-by-step guide: open a reply form, type some text, copy any string ending with a space (such as a word selected via double-click), and paste it into the middle of the existing text, which causes the text to break onto a new line unexpectedly 3. After sam requested clarification on the reproduction steps, codinghorror responded that this appears to be a duplicate of a previously reported Firefox pasting bug from about a week prior and subsequently closed the thread.

Bug in OneBox, very annoying. If you copy some text and last symbol is space, when you paste it, after space there will be extra “newline”. You can test it by double-clicking on any word in this text with space after it, copy and paste in in OneBox. I tested this with text editor - pasting there gives normal result, so it’s issue with pasting in OneBox, not copying from OneBox. I also tried to copy word with space from text editor and paste it in OneBox - yea, “newline” apears on pasting.

P.S. I’m not sure if this important or not, but I use latest FireFox.

step by step, how do I make this issue happen.

Step 1. Open reply form and write something - this is to get more visual.
Step 2. Select any text from anywhere with space at the end, like this:

http://joxi.ru/Vm639bqSQRlN2Z.png

Step 3: Ctrl+C
Step 4. Set your caret in the reply form in the middle of a text you typed, then press Ctrl+V.

You will see that text broke in two lines. That “extra newline” apears in the end of a text from clipboard if there’s space as a last symbol.

1 个赞

I think this is a dupe of the other Firefox pasting bug reported about a week or so ago. So closing.