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