Commit e5e8be2 1 parent 5f03659 commit e5e8be2 Copy full SHA for e5e8be2
File tree 2 files changed +9
-1
lines changed
src/PhpSpreadsheet/Reader
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
60
60
61
61
- Constant ` TYPE_DOUGHTNUTCHART ` is now ` TYPE_DOUGHNUTCHART ` .
62
62
63
+ ## [ Unreleased]
64
+
65
+ ### Fixed
66
+
67
+ - Plain text and richtext mixed in same cell can be read - [ #442 ] ( https://github.com/PHPOffice/PhpSpreadsheet/issues/442 )
68
+
63
69
## [ 1.0.0-beta2] - 2017-11-26
64
70
65
71
### Added
Original file line number Diff line number Diff line change @@ -2068,7 +2068,9 @@ private function parseRichText($is)
2068
2068
} else {
2069
2069
if (is_object ($ is ->r )) {
2070
2070
foreach ($ is ->r as $ run ) {
2071
- if (isset ($ run ->rPr )) {
2071
+ if (!isset ($ run ->rPr )) {
2072
+ $ value ->createText (StringHelper::controlCharacterOOXML2PHP ((string ) $ run ->t ));
2073
+ } else {
2072
2074
$ objText = $ value ->createTextRun (StringHelper::controlCharacterOOXML2PHP ((string ) $ run ->t ));
2073
2075
2074
2076
if (isset ($ run ->rPr ->rFont ['val ' ])) {
You can’t perform that action at this time.
0 commit comments