Board Thread:General Coding Help/@comment-1435793-20170829032856

I'm adding tooltips to the Farming Simulator Wiki. Unlike the example Wikis I've seen above, I'm using tooltips as part of the text in the articles; But whenever I put the tooltip template inside a paragraph of text, the wiki doesn't automatically enclose that paragraph in  tags. As a result, spacing between paragraphs is reduced for no reason.

Example: Collecting Bales - The second paragraph from the top contains a tooltip element (small keyboard button image). That paragraph is not enclosed in  tags, and you can see the margins spaces above and below it are smaller than in other parts of the article.

I did some testing, and it looks like the tooltip-contents div is what's screwing it up (removing the contents changes nothing, but removing the div itself makes the problem go away). I can't figure out why the Wiki cares that there's a div in there, but there you go.

Any ways to fix this? 