Ticket #4144: 4144_2.patch

File 4144_2.patch, 1.1 KB (added by Garry Yao, 15 years ago)
  • _source/core/htmlparser/fragment.js

     
    131131
    132132                        // Rtrim empty spaces on block end boundary. (#3585)
    133133                        if ( element._.isBlockLike
    134                                  && !inPre )
     134                                 && element.name != 'pre' )
    135135                        {
    136136
    137137                                var length = element.children.length,
  • _source/tests/core/htmlparser/htmlparser.html

     
    7171
    7272        <textarea id="htmlOriginal1"><pre>
    7373        text<b>
    74 inside<br /> <br /></b>
     74inside<br /><br /></b>
    7575
    7676pre
    7777</pre></textarea>
     
    8888        para            graph
    8989</p><b>compress   spaces</b></textarea>
    9090
    91 <textarea id="htmlResult2"><p>para graph </p><b>compress spaces</b></textarea>
     91<textarea id="htmlResult2"><p>para graph</p><b>compress spaces</b></textarea>
    9292</body>
    9393</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy