Ticket #5788: 5788.patch

File 5788.patch, 546 bytes (added by Garry Yao, 10 years ago)
  • _source/core/htmlparser/fragment.js

     
    353353                parser.onText = function( text )
    354354                {
    355355                        // Trim empty spaces at beginning of element contents except <pre>.
    356                         if ( !currentNode._.hasInlineStarted && !inPre )
     356                        if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre )
    357357                        {
    358358                                text = CKEDITOR.tools.ltrim( text );
    359359
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy