Last modified: 2011-04-14 15:12:01 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 T6843, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4843 - Pipe markup inserts an extra <p><br></p>, but HTML tables don't
Pipe markup inserts an extra <p><br></p>, but HTML tables don't
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Ome...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-02 19:40 UTC by Omegatron
Modified: 2011-04-14 15:12 UTC (History)
1 user (show)

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


Attachments

Description Omegatron 2006-02-02 19:40:58 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.
Comment 1 Omegatron 2006-02-02 19:48:07 UTC
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.
Comment 2 Omegatron 2006-02-03 02:22:06 UTC
Encasing the entire template in <span> tags gets rid of the extra newline, which
might act as a workaround for now.
Comment 3 Leah 2006-02-08 00:37:44 UTC
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.
Comment 4 Bryan Baron 2009-10-26 03:13:38 UTC
Can't reproduce for the provided URL.

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


Navigation
Links