Open Bug 1187916 Opened 9 years ago Updated 3 years ago

Copy from plain text editor collapses whitespace

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

Tracking Status
firefox42 --- affected

People

(Reporter: neil, Unassigned)

References

Details

(Keywords: regression, testcase)

+++ This bug was initially created as a clone of Bug #1143570 +++

Steps to reproduce:
1. Either install the addon from bug 1143570 comment #19, compose a message in plain text mode, or open SeaMonkey composer and select the HTML source tab.
2. Insert some text with multiple whitespace.  In the case of the HTML source tab, the indentation counts, but you could also use spaces to align a column of numbers, or double-space after a full stop.
3. Copy the text that includes the multiple whitespace to the clipboard.
4. Use Notepad to examine the contents of the clipboard.

Expected results: Newlines, tabs and spaces copy as-is, as if the source was a textarea.

Actual results: All whitespace copies as a single space, with the following exceptions:
If the whitespace includes at least one newline, then it copies as the same number of newlines and no spaces or tabs.
If the first character in the selection is a tab, then the indentation copies as a tab, even if the first line consists only of whitespace.

(The Blocking indication is a guess.)

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.