Hi,
I try to insert few lines of text in a Template Docx.
In my template, I wrote this :
Pièces jointes : $piecesjointes$
I try to do that :
Pièces jointes : - First
- Second
-----
I do that in my code :
$valeur = '- First<w:br/>- Second';
$valeur = explode("<w:br/>", $valeur);
$PHPDocx->addTemplateVariable('piecesjointes', $valeur);
-----
The results is not exactly as expected :
____
Pièces jointes : - First
Pièces jointes : - Second
Pièces jointes :
____
"Pièces jointes" is repeated and a new line is added ...
How can I do it properly ?