X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Ffragment.js;h=3dfc7880acadc3ecf0f3e543eb874f766dcedf6a;hp=8c3ad5d3b960f98564078c2e139cfc93b6280f91;hb=1056598c95187351dc58f4991d331e2258d038b5;hpb=4e90e78dc97789709ee7404359a5517540c27553 diff --git a/_source/core/htmlparser/fragment.js b/_source/core/htmlparser/fragment.js index 8c3ad5d..3dfc788 100644 --- a/_source/core/htmlparser/fragment.js +++ b/_source/core/htmlparser/fragment.js @@ -360,8 +360,8 @@ CKEDITOR.htmlParser.fragment = function() parser.onText = function( text ) { - // Trim empty spaces at beginning of element contents except
.
-			if ( !currentNode._.hasInlineStarted && !inPre )
+			// Trim empty spaces at beginning of text contents except 
.
+			if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre )
 			{
 				text = CKEDITOR.tools.ltrim( text );