Plain text and richtext mixed in same cell can be read
This was introduced in 0084776160
Fixes #442
Closes #453
This commit is contained in:
parent
5f036591cd
commit
e5e8be26d5
|
@ -60,6 +60,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||
|
||||
- Constant `TYPE_DOUGHTNUTCHART` is now `TYPE_DOUGHNUTCHART`.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Plain text and richtext mixed in same cell can be read - [#442](https://github.com/PHPOffice/PhpSpreadsheet/issues/442)
|
||||
|
||||
## [1.0.0-beta2] - 2017-11-26
|
||||
|
||||
### Added
|
||||
|
|
|
@ -2068,7 +2068,9 @@ class Xlsx extends BaseReader
|
|||
} else {
|
||||
if (is_object($is->r)) {
|
||||
foreach ($is->r as $run) {
|
||||
if (isset($run->rPr)) {
|
||||
if (!isset($run->rPr)) {
|
||||
$value->createText(StringHelper::controlCharacterOOXML2PHP((string) $run->t));
|
||||
} else {
|
||||
$objText = $value->createTextRun(StringHelper::controlCharacterOOXML2PHP((string) $run->t));
|
||||
|
||||
if (isset($run->rPr->rFont['val'])) {
|
||||
|
|
Loading…
Reference in New Issue