Skip to content

TextRun in addTitle causes TOC error. #1625

Open
@markmorris

Description

@markmorris

This is:

  • [* ] a bug report

So I've been having an issue for a while regarding tabs in titles. Tabs do not work at all, looking deeper into the code I have seen that titles actually support TextRuns. Using a TextRun in the title causes the tab issue to go away. However, the docx file now errors on open (although the content is all there) and TOC has issues (Text missing).

How to Reproduce

<?php

$titleText = new TextRun();
$titleText->addText("Hello \t");
$titleText->addText('Some other text');
$sceneSection->addTitle($titleText, 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