From ae31196590f3add2f5520cb0f497593119f6b41a Mon Sep 17 00:00:00 2001 From: Patrick Brouwers Date: Thu, 29 Oct 2015 15:33:38 +0100 Subject: [PATCH] Add a text break after every paragraph --- src/PhpWord/Shared/Html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpWord/Shared/Html.php b/src/PhpWord/Shared/Html.php index 2b4acd05b9..4e6d39d314 100644 --- a/src/PhpWord/Shared/Html.php +++ b/src/PhpWord/Shared/Html.php @@ -12,7 +12,7 @@ * * @link https://github.com/PHPOffice/PHPWord * @copyright 2010-2014 PHPWord contributors - * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 + * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3a */ namespace PhpOffice\PhpWord\Shared; @@ -197,6 +197,7 @@ private static function parseParagraph($node, $element, &$styles) { $styles['paragraph'] = self::parseInlineStyle($node, $styles['paragraph']); $newElement = $element->addTextRun($styles['paragraph']); + $newElement->addTextBreak(1); return $newElement; }