File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ private function getParagraphStyle()
221
221
$ pStyleIsObject = ($ paragraphStyle instanceof Paragraph);
222
222
if ($ pStyleIsObject ) {
223
223
$ styleWriter = new ParagraphStyleWriter ($ paragraphStyle );
224
+ /** @var HTML */
225
+ $ temp = $ this ->parentWriter ;
226
+ $ styleWriter ->setParentWriter ($ temp );
224
227
$ style = $ styleWriter ->write ();
225
228
} elseif (is_string ($ paragraphStyle )) {
226
229
$ style = $ paragraphStyle ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function write()
95
95
}
96
96
$ ind = $ style ->getIndentation ();
97
97
if ($ ind != null ) {
98
- $ tcpdf = ( $ this ->getParentWriter () === null ) ? false : $ this -> getParentWriter ()-> isTcpdf (); // @phpstan-ignore-line
98
+ $ tcpdf = $ this ->getParentWriter ()-> isTcpdf ();
99
99
$ left = $ ind ->getLeft ();
100
100
$ inches = $ left * 1.0 / \PhpOffice \PhpWord \Shared \Converter::INCH_TO_TWIP ;
101
101
$ css [$ tcpdf ? 'text-indent ' : 'margin-left ' ] = ((string ) $ inches ) . 'in ' ;
You can’t perform that action at this time.
0 commit comments