I use a html5 tempalte, which seems to work ok in the new version (CKEditor 3.6.2, released on 13 September 2011). This adds a
<p> </p>right before the closing body tag which is highly undesirable since it ruins my layout. Is there a way to prevent the editor from adding empty elements like this?

Re: CKEditor 3.2 add <p>&nbsp</p> at end end of
I updates to 3.6 and ckeditor adds a p-element before </body>.
In 3.4 all worked fine.
Re: CKEditor 3.2 add <p>&nbsp</p> at end end of
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: CKEditor 3.2 add <p>&nbsp</p> at end end of