Fixed: <rdar://problem/3978461> smart paste is broken
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Feb 2005 18:59:07 +0000 (18:59 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Feb 2005 18:59:07 +0000 (18:59 +0000)
commit5397428e9f4a7fbc0930476b53b916b831f7e84f
tree687af45b49fcb1a3813fd0aeeb57cef157d913f3
parent2168459502d71f9a07d5c8515467b85b6ac1f2cf
Fixed: <rdar://problem/3978461> smart paste is broken

        Reviewed by kevin.

        * khtml/editing/htmlediting.cpp:
        (khtml::ReplaceSelectionCommand::doApply): properly check for leading and trailing whitespace. These checks were incorrectly reversed. Also check if we're pasting at the beginning or end of a line. We should not insert spaces in either case.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp