Closed
Bug 36861
Opened 25 years ago
Closed 23 years ago
paste removes whitespace from ends of lines
Categories
(Core :: DOM: Serializers, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: endico, Assigned: peterv)
References
()
Details
Attachments
(1 file)
221 bytes,
text/html
|
Details |
Pasting from this document causes some adjacent words to run together.
For example: "Check Tinderboxto ensure tree is open..."
When lines end with html tags such as "</a>" all whitespace up
until the next word is deleted. This should all get translated into
a space.
For instance, the html "-\n-" prints "- -" and when you select this and
paste it into a document the pasted text, as expected is "- -".
But the html "<a href="">-</a>\n-" also prints "- -" but when you select
this, the pasted text is "--", with no spaces in between the dashes.
Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
assigning to akkanaa for debugging -- reassign as appropriate Akkana
Assignee: beppe → akkana
Comment 3•25 years ago
|
||
Clarification: this is a problem when copying html and pasting plaintext.
I'll track it down.
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Comment 4•25 years ago
|
||
Fixed.
Comment 5•25 years ago
|
||
Really marking fixed this time.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 7•23 years ago
|
||
I am still seeing this bug in Composer rev. 2001112603 on win 98 and win XP
(presumably it will happen on other OS'es too)
My steps to recreate:
1. Open an new page in composer
2. Type some text (the word "testing" for example)
3. Select the text and add rich text to it (bold, color, bigger, etc.)
4. Add a space to the end of the word then select all of it and copy.
5. Paste this elsewhere on the page.
Expected behavior:
All characters will paste including the space at the end.
Actual behavior:
The pasted text will run together as the space is gone (e.g. testingtesting)
The space will be correctly retained if the text is left as default... it is
only after the text has rich features applied to it that it will not paste the
space added onto the end.
If the text has a space added to it before rich text is applied, it will retain
the space when pasted... apparently the order of things is important.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 8•23 years ago
|
||
DOM to text conversion.
Assignee: akkana → harishd
Status: REOPENED → NEW
Component: Editor: Core → DOM to Text Conversion
Comment 10•23 years ago
|
||
Could not reproduce it by following steps mentioned by Tucson.
Assignee | ||
Updated•23 years ago
|
Target Milestone: M16 → ---
Comment 11•23 years ago
|
||
I am also not able to reproduce this problem using the steps mentioned in
comment 7. And even if I was, I don't think that it is related to the original
problem. The bug in comment 7 sounds more like a dupe of 105487 which I am still
able to reproduce.
I am resolving this WORKSFORME since the original bug was verified FIXED on 10-30.
Status: NEW → RESOLVED
Closed: 25 years ago → 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•