00402: aligned cells in simple tables have additional spaces

Summary: aligned cells in simple tables have additional spaces
Created: 2005-03-22 15:53
Status: Closed - fixed for 2.0.0
Category: Bug
From: Klonk
Priority: 55
Version: 2.0beta26

Description: When alignment is used in simple tables the text is surrounded with additional spaces. This does normally not have effect with normal text, but when graphics are used then with IE (only with IE)there is always a little bit of space (vertically) between two lines. Therefore it is not possible to align graphics properly (without holes) vertically.

Some samples:

At the moment:

||text|| results in <td >text</td> which is OK.
|| text || results in <td align='center'> text </td>
|| text|| results in <td align='right'> text</td>

As you can see in the second and third example there are additional spaces (which should not be there, as they could lead to display problems with IE). Here the leading or trailing spaces coming from the markup should be removed, and then there won't be any problem anymore.

BTW: Also when no alignment attribute is available an unnecessary space is visible. Maybe the following line in the Function FormatTableRow in pmwiki.php should be changed from

 $y .= "<$t $attr>".$td[$i]."</$t>"


 $y .= "<$t$attr>".$td[$i]."</$t>"

(not a big thing, but still would give cleaner code)