Last modified: 2011-04-14 15:11:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T6780, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4780 - Unavoidable <p> in multiline table cells
Unavoidable <p> in multiline table cells
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Bugs/M...
:
: 9921 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-28 17:58 UTC by Leah
Modified: 2011-04-14 15:11 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Leah 2006-01-28 17:58:37 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.
Comment 1 George Dowding 2007-05-28 12:47:08 UTC
I am interested in looking at this. It has some similarities to this bug http://bugzilla.wikimedia.org/show_bug.cgi?id=5718
Comment 2 Jesse (Pathoschild) 2007-06-27 19:18:22 UTC
*** Bug 9921 has been marked as a duplicate of this bug. ***
Comment 3 Hedäksis 2010-04-16 15:59:49 UTC
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 ?
Comment 4 Bawolff (Brian Wolff) 2010-04-18 05:28:58 UTC
Why not just do

{| style="border: 1px solid #aaa"
|-
|ab<br>
cd
|-
|}


?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links