Last modified: 2008-03-20 23:29:55 UTC
The Wiki input: === Line-break test === {| |- |Line 1<br/>Line 2<br/> Line 3 |... |} Line 1<br/>Line 2<br/> Line 3 produces HTML-Source (somewhat beautified) : <h3><span class="mw-headline">line-break test</span></h3> <table> <tr> <td>Line 1<br /> Line 2<br /> <p>Line 3</p> </td> <td>...</td> </tr> </table> <p>Line 1<br /> Line 2<br /> Line 3</p> I would not expect a paragraph (<p>...</p>) for "Line 3" in the table cell. This leads to an additonal empty space between Line 2 and Line 3 in the table. Detected in version 1.6.8. It exists still in the current version and was tested in the Sandbox of the MediaWiki-Site (V1.9 alpha).
This bug is even more evident when using HTML tables instead of wiki markup. Say: <table> <tr> <td>Line 1<br /> Line 2<br /> Line 3<br /> Line 4</td> </tr> </table> Instead of producing the exact same thing in the HTML source, produces this: <table> <tr> <td>Line 1<br /> <p>Line 2<br /> Line 3<br /></p> Line 4</td> </tr> </table> If a linebreak is inserted before </td>: <table> <tr> <td>Line 1<br /> Line 2<br /> Line 3<br /> Line 4 </td> </tr> </table> The </p> tag in the HTML source appears after the last line: <table> <tr> <td>Line 1<br /> <p>Line 2<br /> Line 3<br /> Line 4</p> </td> </tr> </table> It appears that in a table cell, everything right after the first line and before the last is interpreted as a new paragraph by MediaWiki.
This is just a special case of bug 5718 (when the block-level elements causing the trouble are table cells <td>), marking as duplicate. *** This bug has been marked as a duplicate of bug 5718 ***