Page MenuHomePhabricator

Tables do not display blank cells with frame using  
Closed, ResolvedPublic

Description

Author: gunter.schmidt

Description:
Table parsing does not work like expected:

  does not work to fill empty tables.
If you look at the table at preview, it looks alright, but the   seems to get lost

Example:
This is a complex table:

{|border="2" cellspacing="0" cellpadding="4" width="100%"

align = "center"'''Heading'''
align = "center"'''Heading'''
align = "center"'''Heading'''
align = "center"'''Heading'''
-
Text 1
Text2
 
Text4
-
bgcolor = "#FF0000"<font color="#000000">Background colors</font>
bgcolor = "#000000"<font color="#FFFFFF">Background colors</font>
bgcolor = "#FFFF00"<font color="#0000FF">Back</font><font color="#FF0000">ground</font> <font

color="#008000">colors</font>

&nbsp;
-
left
align = "center" bgcolor = "#CCFFCC"centered and <font color="#FF00FF">colors</font><br><br><font

color="#FF0000">and some blank</font><br><br><font color="#33CCCC">lines</font>

align = "right"right
align = "justify"justified text is <u>not</u> supported by MediaWiki. I need to write a litte

more in this cell so there is enough text to see the effects of justification

-
Merged cells<br>horizontally
align = "right" bgcolor = "#33CCCC" colspan = "2"Horizontally merged
align = "justify"Merging has limitations!
-
Merged cells<br>vertically 1
bgcolor = "#FFCC00" rowspan = "2"Vertically merged
<font size = "4">'''nested tables:'''</font><br>

{|border="2" cellspacing="0" cellpadding="4" width="100%"

align = "center" bgcolor = "#FF99CC"A
align = "center" bgcolor = "#FF00FF"B
-
align = "right" colspan = "2"merged and right
-
align = "center" bgcolor = "#CC99FF"C
align = "center" bgcolor = "#993366"<font color="#000000">&nbsp;</font>
-
}

<br>with text above and below<br>

align = "justify"Merging has limitations!
-
Merged cells<br>vertically 2
align = "right"&nbsp;
align = "justify"&nbsp;
-
}

Version: 1.7.x
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz6339

Event Timeline

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

gunter.schmidt wrote:

Simpler Table:

{|border="2" cellspacing="0" cellpadding="4" width="90%" align="center"

'''What we can<nowiki>'</nowiki>t do yet'''
&nbsp;
align = "center"text orientation<br>(turned sideways)
not full width of table and table position
-
exact width of cells
&nbsp;
&nbsp;
&nbsp;
-
bgcolor = "#FFFF00"frame-styles
&nbsp;
&nbsp;
&nbsp;
-
}<br clear="all">

gunter.schmidt wrote:

After further testing I found, that this happens only under a certain condition:
If a normal text line has a blank space in the beginnen, the following tables will be messed up.
This issue is new to 1.7, 1.6.x works fine.

  • to be inserted in your wiki --

some text.
some text (this line to have a space in the beginning, so it will get framed.)
some text.

{|border="2" cellspacing="0" cellpadding="4" width="90%" align="center"

'''What we can<nowiki>'</nowiki>t do yet'''
&nbsp;
align = "center"text orientation<br>(turned sideways)
not full width of table and table position
-
exact width of cells
&nbsp;
&nbsp;
&nbsp;
-
bgcolor = "#FFFF00"frame-styles
&nbsp;
&nbsp;
&nbsp;
-
}<br clear="all">
  • end of syntax --
  • This bug has been marked as a duplicate of 5569 ***