We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4840faa commit 81d613bCopy full SHA for 81d613b
src/PhpWord/Shared/Html.php
@@ -717,7 +717,8 @@ protected static function parseStyle($attribute, $styles)
717
// Word does not accept shortened hex colors e.g. #CCC, only full e.g. #CCCCCC
718
if (preg_match('/([0-9]+[^0-9]*)\s+(\#[a-fA-F0-9]+|[a-zA-Z]+)\s+([a-z]+)/', $cValue, $matches)) {
719
if (false !== strpos($cKey, '-')) {
720
- $which = explode('-', $cKey)[1];
+ $tmp = explode('-', $cKey);
721
+ $which = $tmp[1];
722
$which = ucfirst($which); // e.g. bottom -> Bottom
723
} else {
724
$which = '';
0 commit comments