Open
Bug 408809
Opened 17 years ago
Updated 3 years ago
select code feature selectCode() appends white spaces to beginning of line.
Categories
(Core :: DOM: Serializers, defect, P5)
Core
DOM: Serializers
Tracking
()
UNCONFIRMED
People
(Reporter: Dargor__, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2007121704 Minefield/3.0b3pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2007121704 Minefield/3.0b3pre When using the select all code feature ( selectCode() ) at (http://python-forum.org/pythonforum) this forum, and others? the pasted code has extra white spaces at the beginning of each line. These white spaces are not there when manually selecting all. Reproducible: Always Steps to Reproduce: 1. go http://python-forum.org/pythonforum/viewtopic.php?f=9&t=6686&sid=033b267dd37a206bebd1c04223ba29d2#p31147 2. use the "Code : select all" feature 3. copy (ctl + c) or other means 4. go to text editor(or other) paste 5. notice extra white spaces at beginning of line. Actual Results: this is my code. it's a few lines long. notice there are no " " spaces at the beginning of the line Expected Results: this is my code. it's a few lines long. notice there are no " " spaces at the beginning of the line Python users will love you if you fix this. White spaces are good. Dont hurt them.
Comment 1•17 years ago
|
||
Code: Select all this is my code. seems like a fairly reasonable plaintext rendering of <dl><dt>Code...<dd><code>this... and the indenting in the copied text only appears when the start of the text content of the dd is included in the selection. I'm not sure if what's happening is right wrt to the way the selection is being created with the contents of the code elt ...while if the text was selected manually I can see the utility of formatting according to the outer element.
Updated•17 years ago
|
Component: Form Manager → DOM to Text Conversion
Product: Firefox → Core
QA Contact: form.manager → dom-to-text
Version: unspecified → Trunk
Comment 2•3 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: trivial → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•