Add cell indent to html rendering

Quick one-liner to render cell indents in html as padding. 9px seems to be what Excel uses internally
This commit is contained in:
alexgann 2012-08-10 21:34:39 -03:00
parent 14686dbb42
commit dae529615e
1 changed files with 1 additions and 0 deletions

View File

@ -782,6 +782,7 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
$css['vertical-align'] = $this->_mapVAlign($pStyle->getVertical()); $css['vertical-align'] = $this->_mapVAlign($pStyle->getVertical());
if ($textAlign = $this->_mapHAlign($pStyle->getHorizontal())) { if ($textAlign = $this->_mapHAlign($pStyle->getHorizontal())) {
$css['text-align'] = $textAlign; $css['text-align'] = $textAlign;
if(in_array($textAlign,array('left','right'))) $css['padding-'.$textAlign] = (string)((int)$pStyle->getIndent() * 9).'px';
} }
// Return // Return