Merge pull request #6377 from beganovich/v5-610-nl2br

Enable nl2br on PDFs
This commit is contained in:
Benjamin Beganović 2021-08-03 13:01:07 +02:00 committed by GitHub
commit 652141d6cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;