Closed
Bug 192913
Opened 22 years ago
Closed 14 years ago
no new lines in html source code output in midas demo
Categories
(Documentation Graveyard :: Web Developer, defect)
Documentation Graveyard
Web Developer
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: leonya, Assigned: mkaply)
References
()
Details
(Whiteboard: midas demo)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
When selecting "View HTML Source", the resulting html source code doesn't have
any new lines - all the code is on one line, making it very difficult to read.
Editing the source code, adding new lines, then switching to regular editing
mode and back to source mode, the new lines are gone again.
This could be a major problem if users try to use the Midas interface to edit
existing html files, expecting the output to preserve the original formatting of
the html in the file.
Reproducible: Always
Steps to Reproduce:
Updated•22 years ago
|
Severity: normal → minor
Comment 1•22 years ago
|
||
Kathy, is this a dup of anything on your plate? Does getting source from midas
take a different serialization path than the normal editor?
Updated•22 years ago
|
Whiteboard: midas
Comment 2•22 years ago
|
||
reassigning this bug to mkaply
The View Source implementation for Midas is specific to the page author and
mkaply wrote this one. Since it's only a demo, I wouldn't be surprised if he
marked this bug as "wontfix"
Assignee: jfrancis → mkaply
Status: UNCONFIRMED → NEW
Component: Editor: Core → Web Developer
Ever confirmed: true
OS: Windows 2000 → All
Product: Browser → Documentation
Hardware: PC → All
Summary: poorly formatted (no new lines) html source code output in midas demo → no new lines in html source code output in midas demo
Whiteboard: midas → midas demo
Version: Trunk → unspecified
It's on one line because the implementation of view source simply serializes the
html, creates a text node and then inserts that into the iframe. Document in the
iframe is still "html" so it's going to render newlines as spaces.
One alternative is to set style="white-space: pre" on the body when showing the
source and then remove it when going back to edit mode. Right?
| Assignee | ||
Comment 4•14 years ago
|
||
Just a demo. Not going to fix.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•