From e0cb7fca78a969b34ee1415fe42abdc63e95dfc3 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Sat, 9 Jun 2001 21:54:04 +0000 Subject: [PATCH] Don't set 'center' alignment for new hrule element, part of fix to bug 83335, r=sfraser, sr=kin, a=asa-drivers --- editor/base/nsHTMLEditor.cpp | 1 - editor/libeditor/html/nsHTMLEditor.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp index 0c315c9b06b..d40735bf024 100644 --- a/editor/base/nsHTMLEditor.cpp +++ b/editor/base/nsHTMLEditor.cpp @@ -2870,7 +2870,6 @@ nsHTMLEditor::CreateElementWithDefaults(const nsAReadableString& aTagName, nsIDO if (TagName.EqualsWithConversion("hr")) { // Note that we read the user's attributes for these from prefs (in InsertHLine JS) - newElement->SetAttribute(NS_LITERAL_STRING("align"),NS_LITERAL_STRING("center")); newElement->SetAttribute(NS_LITERAL_STRING("width"),NS_LITERAL_STRING("100%")); newElement->SetAttribute(NS_LITERAL_STRING("size"),NS_LITERAL_STRING("2")); } else if (TagName.EqualsWithConversion("table")) diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 0c315c9b06b..d40735bf024 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -2870,7 +2870,6 @@ nsHTMLEditor::CreateElementWithDefaults(const nsAReadableString& aTagName, nsIDO if (TagName.EqualsWithConversion("hr")) { // Note that we read the user's attributes for these from prefs (in InsertHLine JS) - newElement->SetAttribute(NS_LITERAL_STRING("align"),NS_LITERAL_STRING("center")); newElement->SetAttribute(NS_LITERAL_STRING("width"),NS_LITERAL_STRING("100%")); newElement->SetAttribute(NS_LITERAL_STRING("size"),NS_LITERAL_STRING("2")); } else if (TagName.EqualsWithConversion("table"))