Hi guys! If i'm inserting a variable with enter (\n) in it, the newline not started and i'm continue from it - how i can make a line break inserting from variables?
Thanks
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowHi guys! If i'm inserting a variable with enter (\n) in it, the newline not started and i'm continue from it - how i can make a line break inserting from variables?
Thanks
Hello,
You can replace a placeholder by a text with line breaks enabling the parseLineBreaks option available in some template methods (such as replaceVariableByText) or replacing the placeholder by a WordFragment with line breaks. In the package and the documentation pages you can find samples using both approaches; for example on the API page of replaceVariableByText: https://www.phpdocx.com/api-documentation/templates/replace-variable-text-Word-document.
Regards.