b=68767 extra blank space added when block level element (hr, table) is inserted at the end of a line, between two lines

r=jfrancis sr=kin


git-svn-id: svn://10.0.0.236/trunk@141196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com
2003-04-15 20:53:15 +00:00
parent 2231a5f1c5
commit 7f3ff56e4b
3 changed files with 85 additions and 1 deletions

View File

@@ -434,7 +434,10 @@ nsHTMLEditor::InsertHTMLWithCharsetAndContext(const nsAString & aInputString,
res = GetStartNodeAndOffset(selection, address_of(parentNode), &offsetOfNewNode);
if (!parentNode) res = NS_ERROR_FAILURE;
if (NS_FAILED(res)) return res;
// Adjust position based on the first node we are going to insert.
NormalizeEOLInsertPosition(nodeList[0], address_of(parentNode), &offsetOfNewNode);
// if there are any invisible br's after our insertion point, remove them.
// this is because if there is a br at end of what we paste, it will make
// the invisible br visible.