Closed Bug 124753 Opened 23 years ago Closed 23 years ago

[FIX]view-source: can't wrap text/plain

Categories

(SeaMonkey :: UI Design, enhancement, P3)

enhancement

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: timeless, Assigned: bzbarsky)

References

()

Details

Attachments

(1 file)

hixie believes in long lines. but i can't find a web browser that wraps them :-( <blockquote src="bz#mozilla"> [wrap long lines] only works in the "html" mode of viewsource... so... for text/plain docs we never use the viewsource parser. We just use the normal parser. well... all but text/plain _do_ go to view-source. let me summarize the current situation and you tell me what you think text/css and application/javascript go through the "pretty" view source view when you view the source among other things that allows line wrapping. text/plain does _not_ go through there. It goes through the "just show it as plain text" route so has a different background color and no wrapping allowed. text/css and application/javascript _may_ eventually get highlighted, but text/plain never will. I can trivially make text/plain follow the same exact path as the others... it may make view source on plaintext docs a _tiny_ bit slower, but that's about it. text/plain was odd because CNavDTD (the standard parser) was giving it "primary detect" in viewsource mode </blockquote>
Attached patch patchSplinter Review
Fix for the bug
Priority: -- → P3
Summary: view-source: can't wrap text/plain → [FIX]view-source: can't wrap text/plain
Target Milestone: --- → mozilla0.9.9
QA Contact: sairuh → pmac
Comment on attachment 68816 [details] [diff] [review] patch r=harishd
Attachment #68816 - Flags: review+
Comment on attachment 68816 [details] [diff] [review] patch sr=jst
Attachment #68816 - Flags: superreview+
checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified the patch.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: