I seem to be having a similar issue here. I can clean up a channel entry and it’s fine, I go back in there, change nothing and submit again. Extra paragraph and break tags appear randomly. I’ve tried ammending the code in ft.rte.php as quoted above but it doesn’t seem to work for me.