JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.4
[ckeditor.git] / _source / core / htmlparser / fragment.js
index 8c3ad5d..3dfc788 100644 (file)
@@ -360,8 +360,8 @@ CKEDITOR.htmlParser.fragment = function()
 \r
                parser.onText = function( text )\r
                {\r
-                       // Trim empty spaces at beginning of element contents except <pre>.\r
-                       if ( !currentNode._.hasInlineStarted && !inPre )\r
+                       // Trim empty spaces at beginning of text contents except <pre>.\r
+                       if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre )\r
                        {\r
                                text = CKEDITOR.tools.ltrim( text );\r
 \r