Last modified: 2011-04-14 15:11:32 UTC
Mediawiki automatically adds a <p> at the first line break in a table cell. The following code produces the unintuitive result shown at the referenced URL. {| style="border: 1px solid #aaa" |- | a b<br> c d |- |} Intuitively, "b" should be on the same line as "a", just like "d" is on the same line as "c". Instead, the <p> forces a blank line that doesn't correspond to a blank line in the wiki markup. The closing </p> forces a blank line after "d". {| style="border: 1px solid #aaa" |- | a b<br> c d |- |} If "a" is moved to the next line, it trades places with the first blank line, leaving extra space at both ends of the cell. In this situation, "b" is on the same line as "a", as it should be. {| style="border: 1px solid #aaa" |- | a b<br> c d |- |} Inserting a blank line produces the expected behavior that a blank line in the markup corresponds to a blank line in the output.
I am interested in looking at this. It has some similarities to this bug http://bugzilla.wikimedia.org/show_bug.cgi?id=5718
*** Bug 9921 has been marked as a duplicate of this bug. ***
This is a real pity that this bug has never been resolved. It's been 2 years and a half since it was reported. Anybody to take care of that ?
Why not just do {| style="border: 1px solid #aaa" |- |ab<br> cd |- |} ?