Thread:Project:Support desk/Excess Paragraph tags when parsing template (2)

My problem is on my private wiki, which runs on local, so I cannot link directly to it.

I have a template that produce a factbox, similar to the wikipedia Infobox but a tad more crude. When it is parsed, the code ends up with an excess amount of paragraph (P) tags at the end of the last cell in the table, like this:

[1]

I've been through the template and the test article like 10 times, and I cannot find any excess breaks anywhere that would be parsed like that. The number of P tags is constant, and unrelated to the number of fields in use.

Code for the template looks like this:

There are no excess spaces or line breaks in the article I'm using to test the template, that was the first thing I checked. All fields are single-line entries, no trailing spaces.

I'm either running 1.14 or 1.17... I can't remember (or remember how to check).