mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
47530382e3
When defaultParagraphSeparator is not "br", and we hit Enter on a line that is not contained in any block element, we first create a new <div> (or <p>) wrapper to hold the line's contents. If creating this wrapper fails for some reason, we go ahead and insert a <br> instead. In some cases, we would get confused and think we didn't create the block element when really we did. We would insert a <br>, and afterwards something would get rid of the empty block element. In a corner case where the line only consisted of a <br> to start with, this would result in nothing happening, because the original <br> was removed when creating the block element, and only one <br> was inserted to replace it. The correct fix is to just not get confused! MozReview-Commit-ID: 1U8KHC71bfw --HG-- extra : rebase_source : 50640615a3a652c3a74c1aef5412eb82daf8c5fb |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
txmgr | ||
txtsvc | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsEditorCID.h | ||
nsIContentFilter.idl | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorIMESupport.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIEditorUtils.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl | ||
nsPIEditorTransaction.idl |