-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems downloading doc Error in content #1372
Comments
what is the text you are trying to add? |
Thanks for answering what I show are some bibliographical references, that come in an array which I cross and I separate to be able to give the cursive style to the titles and then I show with addListItemRun a list of each reference.
And this is the function that runs through that string array foreach($refer as $r){
$arrDivTitulo = explode(':', ($r));
$texto1 = $arrDivTitulo[0];
$titulo = $arrDivTitulo[1];
$texto2 = $arrDivTitulo[2];
$listItemRun = $section->addListItemRun();
$listItemRun->addText(htmlspecialchars($texto1), array('alignment' => \PhpOffice\PhpWord\SimpleType\Jc::DISTRIBUTE));
$listItemRun->addText(htmlspecialchars($titulo), array('italic' => true));
$listItemRun->addText(htmlspecialchars($texto2), null, array('keepNext' => true, 'indentation' => array('firstLine' => 340)));
} |
this works fine, except that your entry 5 does not contain a |
Excuse me but what is the entrance 5, I do not understand much the answer, maybe I'm dull with so many attempts could clarify me? |
Excuse me again, I saw what he was referring to in Array 5, I corrected him and it worked, thank you very much. God bless you. |
This is:
Expected Behavior
Document can be opened
Current Behavior
when downloading the file the word tells me that the content of the file is damaged if I give it that I accept the risks it opens me without problems how to correct this problem?
Failure Information
if I remove these lines does not give me the warning
How to Reproduce
Context
The text was updated successfully, but these errors were encountered: