Index: CKEditor/trunk/CHANGES.html
===================================================================
--- CKEditor/trunk/CHANGES.html	(revision 6732)
+++ CKEditor/trunk/CHANGES.html	(revision 6740)
@@ -1,3 +1,3 @@
-﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+﻿﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--
 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
@@ -49,4 +49,5 @@
 		<li><a href="http://dev.ckeditor.com/ticket/6629">#6629</a> : Padding body is not anymore needed when last block is pre-formatted.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/4844">#4844</a> : IE: dialogs fail to load if there are too many editors in the page.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/5788">#5788</a> : Html parser trims empty spaces following &lt;br&gt; elements.</li>
 	</ul>
 	<h3>
Index: CKEditor/trunk/_source/core/htmlparser/fragment.js
===================================================================
--- CKEditor/trunk/_source/core/htmlparser/fragment.js	(revision 6732)
+++ CKEditor/trunk/_source/core/htmlparser/fragment.js	(revision 6740)
@@ -361,6 +361,6 @@
 		parser.onText = function( text )
 		{
-			// Trim empty spaces at beginning of element contents except <pre>.
-			if ( !currentNode._.hasInlineStarted && !inPre )
+			// Trim empty spaces at beginning of text contents except <pre>.
+			if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre )
 			{
 				text = CKEDITOR.tools.ltrim( text );
