Skip to content

Commit

Permalink
Update WordToPdfGenerator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sebheitzmann authored Apr 2, 2024
1 parent 333ac04 commit 8dbc74e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Generator/WordToPdfGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ private function setVar(
if ($value instanceof AbstractElement) {
$templateProcessor->setComplexBlock($variable, $value);
} else {
$templateProcessor->setValue($variable, htmlspecialchars($value));
$value1 = str_replace("\n", '</w:t><w:br/><w:t>', $value);
$templateProcessor->setValue($variable, htmlspecialchars($value1));
}
}
}
Expand Down

0 comments on commit 8dbc74e

Please sign in to comment.