Hi, not in a position to test code right now but I can see that the script is a little too simple.
It would be better if you could put ID's on all of the rows and cells for a start, preferably numbered so row R01 would contain cells R01C01 and R01C02 etc. That way you can easily id the row from a cell. Otherwise you will need to mess with XPaths which is probably more efficient but rather harder to get your head around. Then for each row, you will need to check if each of the cells is empty - in your example, of course, you'd only need to check the second cell on each row as the first is never empty. Keep count of the empty rows and if the final count is the same as the total number of rows, you can remove the table, otherwise remove the empty rows. Also, the code you have there will operate on EVERY table in your TW file, not something you really want. ID your tables or use a more complex search (using JQuery is easier for such things) to ensure that you have got the right table. Remember that any Javascript will operate on the whole document unless you tell it otherwise. Regards, Julian Knight -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.