Skip to content

Commit 7f02c9c

Browse files
authored
Update TextBreak.php FIXES no new paragraph in TextRun.
1 parent a96b3c9 commit 7f02c9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PhpWord/Writer/RTF/Element/TextBreak.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public function write()
3636
$parentWriter = $this->parentWriter;
3737
$parentWriter->setLastParagraphStyle();
3838

39-
return '\pard\par' . PHP_EOL;
39+
if ($this->withoutP) {
40+
return '\line' . PHP_EOL;
41+
} else {
42+
return '\pard\par' . PHP_EOL;
43+
}
4044
}
4145
}

0 commit comments

Comments
 (0)