Forum:Unwanted new 'p' and 'br' tag added into last cell

I have this code in template:

when param 1,2,3 is defined(param 5,6 is empty/null), wikia renders a.svg, b.svg and c.svg correctly

however, immediately after  element of c.svg, "  " is added into the third cell generating new line. the third cell look like this:



I don't want the new line. How can I remove it? Thx for any advice.