I think I figured out what's going on. I was able to remove the whitespace by going into WYSIWYG mode and removing it, but then submitting the edited post stripped all the line breaks from the table code like I mentioned above. Going back and adding the pretty-printed code caused the huge whitespace to come back.