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;