mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #4558 from beganovich/v5-support-for-linebreaks-on-pdf
(v5) Support for multiline text on PDF
This commit is contained in:
commit
a1c438a854
@ -112,6 +112,10 @@ trait PdfMakerUtilities
|
|||||||
foreach ($children as $child) {
|
foreach ($children as $child) {
|
||||||
$contains_html = false;
|
$contains_html = false;
|
||||||
|
|
||||||
|
if (isset($child['content'])) {
|
||||||
|
$child['content'] = nl2br($child['content']);
|
||||||
|
}
|
||||||
|
|
||||||
// "/\/[a-z]*>/i" -> checks for HTML-like tags:
|
// "/\/[a-z]*>/i" -> checks for HTML-like tags:
|
||||||
// <my-tag></my-tag> => true
|
// <my-tag></my-tag> => true
|
||||||
// <my-tag /> => true
|
// <my-tag /> => true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user