You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
span is an inline element, but exporting word wraps
Steps to Reproduce
Please provide a code sample that reproduces the issue.
<?phpusePhpOffice\PhpWord\IOFactory;
usePhpOffice\PhpWord\PhpWord;
usePhpOffice\PhpWord\Shared\Html;
require __DIR__ . '/vendor/autoload.php';
$phpWord = newPhpWord();
$section = $phpWord->addSection();
$data = 'PHPWord is a library written in <span>pure PHP that provides</span> a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open Document Format for Office Applications (OpenDocument or ODF), and Rich Text Format (RTF)';
Html::addHtml($section, $data, false, false);
// 导出 Word 文档$objWriter = IOFactory::createWriter($phpWord);
$objWriter->save($filePath);
### Expected Behavior
span tag don't wrap
### Current Behavior
span tag wrap
### Context
Please fill in your environment information:
- PHP Version: 7.4
- PHPWord Version: 1.1
The text was updated successfully, but these errors were encountered:
Describe the Bug
span is an inline element, but exporting word wraps
Steps to Reproduce
Please provide a code sample that reproduces the issue.
The text was updated successfully, but these errors were encountered: