Reviewed by Hyatt
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2004 21:34:20 +0000 (21:34 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2004 21:34:20 +0000 (21:34 +0000)
commite960e44aaf75d966f10d1b2feb517b7e42449f6f
tree1a2ca6b357cd8f002a8f435c05223e97f18c8b2d
parent48db4168b352354d9b238976009bd910cfdc88e9
    Reviewed by Hyatt

        Fix for this bug:

        <rdar://problem/3775316> document sprouts an extra newline character at the end

        * khtml/editing/htmlediting_impl.cpp:
        (khtml::InputNewlineCommandImpl::doApply): There was in insufficient check
        in the code which adds extra BR elements at the ends of blocks, which we do
        to work around the fact that BR elements, when they are the last element in a
        block, do not render. Now the code sees whether there already is one of these
        extra BR's in the document and won't add and "extra" extra.
        * layout-tests/editing/inserting/insert-3775316-fix.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/inserting/insert-3775316-fix.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting_impl.cpp