--- class.tslib_content.php 2005-06-05 16:48:37.000000000 +0200 +++ /srv/www/t3_independent/regionet/typo3_src-3.8.0/tslib/class.tslib_content.php 2005-05-24 21:57:08.000000000 +0200 @@ -1069,17 +1069,7 @@ // Table-tag is inserted $i=$contentPosition; $table_align = (($i==16) ? 'align="'.$align.'"' : ''); - // three variants with different inline styles are needed for alignment reasons - if ($align=='center') { - $tablecode = ''.$tablecode; - } - if ($align=='right') { - $tablecode = ''.$tablecode; - } - if ($align=='left') { - $tablecode = ''.$tablecode; - } - //$tablecode = ''.$tablecode; + $tablecode = ''.$tablecode; if ($editIconsHTML) { // IF this value is not long since reset. $tablecode.=''.$editIconsHTML.''; $editIconsHTML=''; @@ -1092,31 +1082,12 @@ } $spaceBelowAbove = intval($this->stdWrap($conf['spaceBelowAbove'],$conf['spaceBelowAbove.'])); - //depending on the alignment for above/below, three different variants of the enclosing div are needed with position specific classes switch ($contentPosition) { case '0': // above - if ($align=='center') { - $output= '
'.$tablecode.'
'.$this->wrapSpace($content, $spaceBelowAbove.'|0'); - } - if ($align=='right') { - $output= '
'.$tablecode.'
'.$this->wrapSpace($content, $spaceBelowAbove.'|0'); - } - if ($align=='left') { - $output= '
'.$tablecode.'
'.$this->wrapSpace($content, $spaceBelowAbove.'|0'); - } - //$output= '
'.$tablecode.'
'.$this->wrapSpace($content, $spaceBelowAbove.'|0'); + $output= '
'.$tablecode.'
'.$this->wrapSpace($content, $spaceBelowAbove.'|0'); break; case '8': // below - if ($align=='center') { - $output= $this->wrapSpace($content, $spaceBelowAbove.'|0').'
'.$tablecode.'
'; - } - if ($align=='right') { - $output= $this->wrapSpace($content, $spaceBelowAbove.'|0').'
'.$tablecode.'
'; - } - if ($align=='left') { - $output= $this->wrapSpace($content, $spaceBelowAbove.'|0').'
'.$tablecode.'
'; - } - //$output= $this->wrapSpace($content, '0|'.$spaceBelowAbove).'
'.$tablecode.'
'; + $output= $this->wrapSpace($content, '0|'.$spaceBelowAbove).'
'.$tablecode.'
'; break; case '16': // in text $output= $tablecode.$content;