Ticket #5293: 5293_3.patch

File 5293_3.patch, 781 bytes (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/core/htmlparser/fragment.js

     
    108108                        }
    109109                }
    110110
    111                 function sendPendingBRs()
     111                function sendPendingBRs( brsToIgnore )
    112112                {
    113                         while ( pendingBRs.length )
     113                        while ( pendingBRs.length - ( brsToIgnore || 0 ) > 0 )
    114114                                currentNode.add( pendingBRs.shift() );
    115115                }
    116116
     
    392392                // Parse it.
    393393                parser.parse( fragmentHtml );
    394394
    395                 sendPendingBRs();
     395                // Send all pending BRs except one, which we consider a unwanted bogus. (#5293)
     396                sendPendingBRs( !CKEDITOR.env.ie && 1 );
    396397
    397398                // Close all pending nodes.
    398399                while ( currentNode.type )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy