Skip to content

splitted RichElements #476

@antonioaltamura

Description

@antonioaltamura

This is:

- [*] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

Not exactly a bug, it's a strange behaviour.
I want just 1 RichText object out of "Geneva Refugee Convention and Protocol"

What is the current behavior?

Two RichText objects: "Geneva Refugee Convention " and " and Protocol" with exactly the same proprieties (Font Object).

What are the steps to reproduce?

File: rich.xlsx

<?php
require __DIR__ . '/vendor/autoload.php';
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$spreadsheet = $reader->load("rich.xlsx");
$a1 = $spreadsheet->getActiveSheet()->getCell('A1');
print_r($a1->getValue()->getRichTextElements());

Which versions of PhpSpreadsheet and PHP are affected?

PHP: 7.2.4
phpspreadsheet: 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions