From 539286d85b3e0dc7240a4a781b29fb4922f7abae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 3 Aug 2021 13:00:32 +0200 Subject: [PATCH] Enable nl2br --- app/Services/PdfMaker/PdfMakerUtilities.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/PdfMaker/PdfMakerUtilities.php b/app/Services/PdfMaker/PdfMakerUtilities.php index 19e60b6a8be2..ba8709cdafa2 100644 --- a/app/Services/PdfMaker/PdfMakerUtilities.php +++ b/app/Services/PdfMaker/PdfMakerUtilities.php @@ -95,6 +95,8 @@ trait PdfMakerUtilities $child['content'] = $this->commonmark->convertToHtml($child['content'] ?? ''); } + $child['content'] = array_key_exists('content', $child) ? nl2br($child['content']) : ''; + if (isset($child['content'])) { if (isset($child['is_empty']) && $child['is_empty'] === true) { continue;