Forum:In a template, unnecessary p's and br's are being produced through a div

Okay so I'm editing http://thetekkit.wikia.com/wiki/Cables, and you'll see my problem near the Gold Cable's section edit button. The template I'm using is Grid/Crafting_Table and what it does is let you place 32x32 pixel images on a grid.

However, it also produces and nested 's inside the  that overlay things below it, except for other crafting grids. I've looked at the templates the crafting grid relies on and none of them seem to produce or  elements.