Closed
Bug 95129
Opened 25 years ago
Closed 24 years ago
Retain original source formatting does not work properly.
Categories
(Core :: DOM: Serializers, defect, P3)
Core
DOM: Serializers
Tracking
()
mozilla0.9.9
People
(Reporter: scott_mozilla, Assigned: t_mutreja)
Details
(Whiteboard: [NC])
Preferences -> Composer -> "When Saving Files" -> Retain original source
formatting does not work properly.
Rather, when saving using the option retail original source formatting instead
appears as though it ignores source formatting completely.
Also, the realm of this option appears greater than "when saving" but also while
viewing the source of your HTML document. You should probably change the bar
option to reflect this.
Scott.
Comment 1•25 years ago
|
||
-->editor
Assignee: kmcclusk → beppe
Component: Compositor → Editor
QA Contact: petersen → sujay
Comment 2•25 years ago
|
||
Anthony already has a bug on the pref being backward, but apparently it didn't
make it for 6.1. :-(
Assignee: beppe → anthonyd
Comment 3•25 years ago
|
||
getting this in 9.5 for tony
Priority: -- → P3
Target Milestone: --- → mozilla0.9.5
the wording in the pref dialog is bass-ackwards. needs to be fixed.
anthonyd
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Whiteboard: [NC]
Comment 6•25 years ago
|
||
Akkana--let's please fix this ASAP.
-->akkana
Assignee: brade → akkana
URL: N/A
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 7•25 years ago
|
||
Composer is now doing the right thing with the pref: when the prefs dialog says
"Retain original source formatting", editor.prettyprint is false, and the format
flag is not passed to the serializer (mDoFormat == PR_FALSE). When the prefs
dialog says "Reformat ('pretty print') HTML source", editor.prettyprint is true
and the format flag is set in the flags passed to the serializer.
The serializer isn't doing the right thing with these flags, though. When
prettyprint is off, it's dropping newlines outside the body so e.g. there's no
newline saved at the end of the file after the </html> tag (bad!) When
prettyprint is on, it's not ignoring whitespace from the original file, so we
get a mixture of prettyprinting and original formatting. Lots of regressions here.
Passing to the new serializer owner.
Assignee: akkana → peterv
Status: ASSIGNED → NEW
Comment 8•25 years ago
|
||
reset component
We get a lot of complaints from users of Composer on this issue.
Severity: normal → major
Component: Editor → DOM to Text Conversion
OS: Windows ME → All
Hardware: PC → All
Comment 9•25 years ago
|
||
This bug is the only thing keeping me from using composer as my primary html
developement environment. To effectively edit html, the source has got to be
consistently formatted.
Comment 10•25 years ago
|
||
All these missed the bus/train/plane/boat/whatever. Sad.
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Updated•25 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Updated•24 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Past 0.9.8, moving forward.
Target Milestone: mozilla0.9.8 → mozilla0.9.9
| Assignee | ||
Comment 13•24 years ago
|
||
New lines outside the body are not being passed to the serializer. Looks like
parser issue similar to bug#87102.
Assigning to harishd, marking this one as duplicate of 87102.
*** This bug has been marked as a duplicate of 87102 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•