Merge pull request #4558 from beganovich/v5-support-for-linebreaks-on-pdf

(v5) Support for multiline text on PDF
This commit is contained in:
Benjamin Beganović 2020-12-23 14:01:05 +01:00 committed by GitHub
commit a1c438a854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
// <my-tag></my-tag> => true