Page MenuHomePhabricator

indented embedded table leaves an unclosed DL, causing unwanted indentation
Open, LowPublic

Description

Author: rickblock

Description:
The following wikisource doesn't seem to be processed correctly, generating an open DL without the corresponding close DL.
The list items should be indented to the same level, but aren't.

* list, first item
:{|
|-
{|
|-
| an embedded table || with one row
|}
|}
* another item

URL: http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29/Archive?oldid=70119218#Formatting_issue_.28indentation.29

Details

Reference
bz6776

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:20 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz6776.
bzimport added a subscriber: Unknown Object (MLST).

Workaround: enclose it into <div>s

Bulleted lists are not required to demonstrate the bug, although it does seem to occur most often in practice when trying to include a table between bulleted list items with appropriate indentation. Presence or absence of a blank line after the table also has no effect. The following markup is sufficient to reproduce the bug:

:{|

{|

This is indented and wrapped in two tables.
}
}

This should be normal, unindented text.

The problem is, that the indent_level is overriden by the inner table with 0 and so the dl/dd for the outer table is not closing.

The wikitext:

  • list, first item

::{|

-

:{|

-
an embedded tablewith one row
}
}
  • another item

only close the one indent for the inner table and only one of the outer indent, because the inner table has one indent, and that overrides the count of outer indent.

  • Bug 38162 has been marked as a duplicate of this bug. ***
:{|
|-
{|
|This is indented and wrapped in two tables.
|}
|}
This should be normal, unindented text.