Skip to content

Commit

Permalink
pass the paragraph style
Browse files Browse the repository at this point in the history
  • Loading branch information
troosan committed Feb 11, 2021
1 parent a382f9d commit bed1f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpWord/Shared/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected static function parseInput($node, $element, &$styles)
switch ($inputType) {
case 'checkbox':
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
$textrun = $element->addTextRun();
$textrun = $element->addTextRun($styles['paragraph']);
$textrun->addFormField('checkbox')->setValue($checked);
break;
}
Expand Down

0 comments on commit bed1f7a

Please sign in to comment.