Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5858)
+++ /CKEditor/trunk/CHANGES.html (revision 5859)
@@ -66,4 +66,5 @@
#6117 : BIDI: Language direction is changing when we come out of Numbered/Bulleted list.
#6182 : Language Direction field on the Advanced tab of Table Properties dialog has a fixed pixel width.
+ #5487 : Fullpage writer problem with line-break.
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 5858)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 5859)
@@ -15,5 +15,5 @@
// Matching an empty paragraph at the end of document.
- var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center|li)[^>]*>\s*(?:
]*>| |\u00A0| )?\s*(:?<\/\1>)?\s*(?=$|<\/body>)/gi;
+ var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:
]*>| |\u00A0| )?\s*(:?<\/\1>)?(?=\s*$|<\/body>)/gi;
var notWhitespaceEval = CKEDITOR.dom.walker.whitespaces( true );