Merge pull request #2301 from Progi1984/htmlTableStyleAttribute
HTML Reader : Override inline style on HTML attribute for table
This commit is contained in:
commit
c467fe02d3
|
|
@ -21,3 +21,4 @@ phpword.ini
|
|||
/.project
|
||||
/nbproject
|
||||
/.php_cs.cache
|
||||
/.phpunit.result.cache
|
||||
|
|
|
|||
|
|
@ -107,10 +107,6 @@ class Html
|
|||
foreach ($attributes as $attribute) {
|
||||
$val = $attribute->value;
|
||||
switch (strtolower($attribute->name)) {
|
||||
case 'style':
|
||||
$styles = self::parseStyle($attribute, $styles);
|
||||
|
||||
break;
|
||||
case 'align':
|
||||
$styles['alignment'] = self::mapAlign(trim($val));
|
||||
|
||||
|
|
@ -152,6 +148,11 @@ class Html
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$attributeStyle = $attributes->getNamedItem('style');
|
||||
if ($attributeStyle) {
|
||||
$styles = self::parseStyle($attributeStyle, $styles);
|
||||
}
|
||||
}
|
||||
|
||||
return $styles;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue