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:
parent
14686dbb42
commit
dae529615e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue