Last modified: 2011-04-14 15:12:01 UTC
When a pipe markup table is placed after a heading with a newline between them, an extra <p><br></p> is generated between them. The renderer is supposed to ignore a single newline after a heading; it should behave the same way whether there's a newline or not. Tables done in HTML do not have this extra <p><br></p>, whether there is a newline or not. See my example page. I noticed this with templates with tables inside, but it also happens with other templates. Template:main, for instance, has a colon as the first character, and has the same problem when transcluded, but not when subst'ed.
Oh! And when subst'd, the pipe markup table and template:main both get an extra newline added at the beginning. In other words: == Heading == {{subst:main|test}} becomes: == Heading == :''Main article: [[test]]'' It gets an extra newline added before it. This does not happen with plain text templates or ones with HTML table markup.
Encasing the entire template in <span> tags gets rid of the extra newline, which might act as a workaround for now.
Tables can also cause a <br> to be placed at the beginning of the following paragraph if there are blank lines after the table. The last example in [[User:Omegatron/Sandbox/ExtraBR]] has extra space following it because of this.
Can't reproduce for the provided URL.