Sometimes it'll do that if you don't have a td or tr closed properly, or if you have Auto-Formatting enabled in the editing field (which then forces linebreaks where you don't intend them in raw code). Without seeing your actual code I think it'll be tough for people to say what your problem is exactly.