Skip to content

Strikethrough not working in v0.16.0 #1693

Closed
@fyrefli7

Description

@fyrefli7

Describe the Bug

Strikethrough is no longer working in version 0.16.0, it is working in version 0.15.0

Steps to Reproduce

<?php
require __DIR__ . '/vendor/autoload.php';

$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$section->addText('Hello World!', array('strikethrough' => true));

$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
$objWriter->save('/tmp/test.docx');

Expected Behavior

In the above example 'Hello World!' should have the strikethrough formatting applied.

Using "composer require phpoffice/phpword" to install the PHPWord results in strikethrough not being applied. However using "composer require phpoffice/phpword:0.15.0" to install the PHPWord does apply strikethrough.

Context

Ubuntu: 19.04
PHP Version: 7.2.19
LibreOffice: 6.2.5.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions