Code style
This commit is contained in:
parent
889f4e3381
commit
38788e0c7e
|
|
@ -110,7 +110,7 @@ class Html
|
||||||
case 'width':
|
case 'width':
|
||||||
// tables, cells
|
// tables, cells
|
||||||
if (false !== strpos($val, '%')) {
|
if (false !== strpos($val, '%')) {
|
||||||
// e.g. <table width="100%"> or <td width=50%>
|
// e.g. <table width="100%"> or <td width="50%">
|
||||||
$styles['width'] = intval($val) * 50;
|
$styles['width'] = intval($val) * 50;
|
||||||
$styles['unit'] = \PhpOffice\PhpWord\SimpleType\TblWidth::PERCENT;
|
$styles['unit'] = \PhpOffice\PhpWord\SimpleType\TblWidth::PERCENT;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -883,6 +883,10 @@ class Html
|
||||||
case 'baseline':
|
case 'baseline':
|
||||||
return 'top';
|
return 'top';
|
||||||
default:
|
default:
|
||||||
|
// @discuss - which one should apply:
|
||||||
|
// - Word uses default vert. alignment: top
|
||||||
|
// - all browsers use default vert. alignment: middle
|
||||||
|
// Returning empty string means attribute wont be set so use Word default (top).
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue