Merge pull request #25 from alexgann/patch-2

Add cell indent to html rendering
This commit is contained in:
Mark Baker 2012-08-13 05:09:42 -07:00
commit 18920d60c7

View File

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