diff --git a/CHANGELOG.md b/CHANGELOG.md index 28563460..5cdb56e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/PhpSpreadsheet/Reader/Xlsx.php b/src/PhpSpreadsheet/Reader/Xlsx.php index 00ebb9a9..f5750fd9 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx.php +++ b/src/PhpSpreadsheet/Reader/Xlsx.php @@ -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 = [];