From 16edac3738368c3483fb3c2d003ec16e6291b916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 23 Dec 2020 13:49:25 +0100 Subject: [PATCH] add support for multiline text --- app/Services/PdfMaker/PdfMakerUtilities.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/PdfMaker/PdfMakerUtilities.php b/app/Services/PdfMaker/PdfMakerUtilities.php index a4e9d506e36a..e5f3b1154328 100644 --- a/app/Services/PdfMaker/PdfMakerUtilities.php +++ b/app/Services/PdfMaker/PdfMakerUtilities.php @@ -111,6 +111,10 @@ trait PdfMakerUtilities { foreach ($children as $child) { $contains_html = false; + + if (isset($child['content'])) { + $child['content'] = nl2br($child['content']); + } // "/\/[a-z]*>/i" -> checks for HTML-like tags: // => true