Skip to content

Commit bed1f7a

Browse files
authored
pass the paragraph style
1 parent a382f9d commit bed1f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Shared/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected static function parseInput($node, $element, &$styles)
285285
switch ($inputType) {
286286
case 'checkbox':
287287
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
288-
$textrun = $element->addTextRun();
288+
$textrun = $element->addTextRun($styles['paragraph']);
289289
$textrun->addFormField('checkbox')->setValue($checked);
290290
break;
291291
}

0 commit comments

Comments
 (0)