From b158b64aa3cf54976f381fd1aca8eb9467eb7e90 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 19 Dec 2003 15:56:08 +0000 Subject: [PATCH] Bug #228720 --> Don't down-convert message to plain text if dir attribute is set for RTL users. r/sr=bienvenu --- mailnews/compose/src/nsMsgCompose.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index 6c91804148d3..be91e5d496f6 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -4263,6 +4263,9 @@ nsresult nsMsgCompose::TagConvertible(nsIDOMNode *node, PRInt32 *_retval) !color.Equals(NS_LITERAL_STRING("#FFFFFF"), nsCaseInsensitiveStringComparator())) { *_retval = nsIMsgCompConvertible::Altering; } + else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("dir"), &hasAttribute)) + && hasAttribute) // dir=rtl attributes should not downconvert + *_retval = nsIMsgCompConvertible::No; //ignore special color setting for link, vlink and alink at this point. }