I have attached 2 files, working page script and broken page script. The broken script is exactly how data assist inserted it into the tabbed panel. As you can see the <table></table> tags are in different places for some reason which may be the problem.
I followed the same process in both pages ie: insert>webassist>data assist>repeating table