Support for shape style ending with `;`
Valid CSS style can end with `;` and that is the case for some 3rd party software such as WPS Office. Closes #304
This commit is contained in:
parent
139d85d874
commit
ca6114639a
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||
### Fixed
|
||||
|
||||
- Better auto-detection of CSV separators - [#305](https://github.com/PHPOffice/PhpSpreadsheet/issues/305)
|
||||
- Support for shape style ending with `;` - [#304](https://github.com/PHPOffice/PhpSpreadsheet/issues/304)
|
||||
|
||||
## [1.0.0] - 2017-12-25
|
||||
|
||||
|
|
|
@ -2157,7 +2157,7 @@ class Xlsx extends BaseReader
|
|||
|
||||
private static function toCSSArray($style)
|
||||
{
|
||||
$style = str_replace(["\r", "\n"], '', $style);
|
||||
$style = trim(str_replace(["\r", "\n"], '', $style), ';');
|
||||
|
||||
$temp = explode(';', $style);
|
||||
$style = [];
|
||||
|
|
Loading…
Reference in New Issue