WebCore:
2009-04-13 Adele Peterson <adele@apple.com> Reviewed by Darin Adler. Fix for <rdar://problem/5510537> Typing return at start of block quote yields empty quoted line Test: editing/inserting/5510537.html * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply): If the break insertion position is at the beginning of the topmost quote, then just insert the <br> before the blockquote. Otherwise, if the break insertion position is at the beginning of any quote, adjust the position so the break comes before the current quote level so we don't end up with an empty line in that quote in addition to the new line we're adding with the <br>. LayoutTests: 2009-04-13 Adele Peterson <adele@apple.com> Reviewed by Darin Adler. Test for <rdar://problem/5510537> Typing return at start of block quote yields empty quoted line * editing/inserting/5510537.html: Added. * platform/mac/editing/inserting/5510537-expected.checksum: Added. * platform/mac/editing/inserting/5510537-expected.png: Added. * platform/mac/editing/inserting/5510537-expected.txt: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@42433 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment