Reviewed by John
Fix for this bug:
<rdar://problem/
3786362> REGRESSION (Mail): pasted text loses one newline
* khtml/editing/htmlediting.cpp:
(khtml::InsertLineBreakCommand::doApply): Added check for strict mode before adding an extra br element
at the end of a block. This is only necessary in quirks mode. Also, lower-case "br" used to make element.
(khtml::ReplaceSelectionCommand::doApply): If the replacement adds a br element as the last element
in a block and the document is in quirks mode, add an additional br to make the one in the
replacement content show up. This turns out to be much the same logic as is done in InsertLineBreakCommand.
* layout-tests/editing/inserting/insert-
3786362-fix-expected.txt: Added.
* layout-tests/editing/inserting/insert-
3786362-fix.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8108
268f45cc-cd09-0410-ab3c-
d52691b4dbfc