Open Bug 950525 Opened 12 years ago Updated 3 years ago

Don't format HTML (inserting line break) if draft mode

Categories

(MailNews Core :: Composition, defect)

defect

Tracking

(Not tracked)

People

(Reporter: m_kato, Unassigned)

Details

Attachments

(1 file)

When saving / sending mail, we use nsIDocumentEncoder with nsIDocumentEncoder::OutputFormatted. nsIDocumentEncoder::OutputFormatted insert line break per wrap length. So when composing mail then saving it as draft, line break may be unfortunately inserted. So we should use nsIDocumentEncoder::OutputRaw when saving as draft. When sending mail, nsMsgComposeAndSend is re-created, so we should use OutputFormatted with deliver mode only. And force text mode, HTML text will be converted in nsMsgAttachmentHandler::UrlExit(). So we keep raw mode for format=flowed.
Attached patch v1Splinter Review
Does this still happen? Current behaviour per comment 0 looks wrong, and proposal of comment 0 looks right! :)
Joshua, can you comment?
Flags: needinfo?(Pidgeot18)
Assignee: m_kato → nobody
Flags: needinfo?(Pidgeot18)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: