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:
Adrien Crivelli 2017-12-28 12:36:57 +09:00
parent 139d85d874
commit ca6114639a
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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 = [];