Thank you for your quick response.

I definitely need to get some sleep.
That " //-->" on the end of my script is a good example of what lack of a proper night of sleep can do to a person.
That "big whole linking table" actually was a thing that my client wanted...

Well back to the real thing:
If I understood you correctly (and again I'll remember my lack of sleeping time) with the "<!--start_cut//-->" and "<!--end_cut//-->" only the empty rows would be cut.
My doubt is that depending of the record, a field can be empty or not.
I don't want to cut that row always only when, for some reason, there's no data in it and I'm just afraid that my lack of decent English skills could be inducing you in error.
(Although I'm assuming that if you had understood that O wanted to clean that row always, you had simply suggested to delete it from the template...)
If that could be "doable" that would be great.
This way I don't need to clean the padding on the cells... I really don't like to see the text close to the borders.

Again thank you for all your help.
Pedro Fardilha