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
There is a bug in the phpword while transforming HTML to a Word document and it doesn’t recognize text-align: right. So we need to edit this file vendor/phpoffice/phpword/src/PhpWord/SimpleType/Jc.php and set const END = 'right'; instead of const END = 'end'; before running the transforming process.
Steps to Reproduce
Here is an example of HTML code :
<p style="text-align:justify;"><strong>Poursuivre la gestion sur un compte dédié.</strong></p>
<p style="text-align:right;"><strong>Poursuivre la gestion sur un compte dédié.</strong></p>
<p style="text-align:right;">Frais de gestion de <strong>xx euros / mois HT</strong> facturés par Auto-planning.</p>
Describe the Bug
There is a bug in the phpword while transforming HTML to a Word document and it doesn’t recognize text-align: right. So we need to edit this file vendor/phpoffice/phpword/src/PhpWord/SimpleType/Jc.php and set const END = 'right'; instead of const END = 'end'; before running the transforming process.
Steps to Reproduce
Here is an example of HTML code :
And php code:
Current Behavior
When I transform HTML code with align right to word doc. I do not have alignment in that place (For other align it works well)
Context
The text was updated successfully, but these errors were encountered: