0

I had find and tried many way such as:

\n

.PHP_EOL






but when open the billing it not break line, does anyone had success break line?

my example code: $line_item->setDescription($item->description."\n \n \n");

  • Have you try \r\n ? Or on html we can use
    to make line break.
    – Ari Abimanyu Dec 17 '21 at 07:19
  • I already use
    , and it show the element "
    " in description. I think they had trim(\n, , ...) so the break line and space had been remove, i don't know is there any way to prevent it
    – Hiệp Nguyễn Dec 17 '21 at 07:23
  • Hope this help. https://github.com/calcinai/xero-php/issues/447 He try manually make line break on his code. – Ari Abimanyu Dec 17 '21 at 07:34
  • Thanks @AriAbimanyu, he break line with text behind so that working, but i just want break line but it had been clear, so i thing they trim it. – Hiệp Nguyễn Dec 17 '21 at 07:37

0 Answers0