Last modified: 2008-03-20 23:29:55 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 T10037, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8037 - Line break in tablecells
Line break in tablecells
Status: RESOLVED DUPLICATE of bug 5718
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.9.x
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-25 20:17 UTC by Michael Schliephake
Modified: 2008-03-20 23:29 UTC (History)
1 user (show)

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


Attachments

Description Michael Schliephake 2006-11-25 20:17:18 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).
Comment 1 Fibonacci 2007-06-04 08:27:29 UTC
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.
Comment 2 Mormegil 2008-03-20 23:29:55 UTC
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 ***

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


Navigation
Links